SliTaz SliTaz Forum

You are not logged in.

#1 2014-09-05 17:07:42

Lessons
Member
Registered: 2014-09-05
Posts: 8

Editing rootfs.gz file in Slitaz Rolling Version 24082014 (last version)

Hi.

My story:

I used to edit the rootfs.gz file when I used Slitaz-4.0-core.iso.

I did that with those commands:

---start

(zcat rootfs.gz 2>/dev/null || lzma d rootfs.gz -so) | cpio -id

rm rootfs.gz

#edit some files

find . -print | cpio -o -H newc | lzma e -si -so > ../rootfs.gz

---end

Now, I use slitaz-rolling-core.iso downloaded from here: http://mirror.slitaz.org/iso/rolling/

Those commands do not work any more. I get this error: http://forum.slitaz.org/topic/slitaz-50-rc1-crashing-on-boot-up-with-kernel-panic-please-help

...even if I use the rolling version, and even if I do not edit anything.

The strange think is that the rootfs.gz file genrated by the command:

tazusb writefs lzma

works great!

So, I think you might have changed something to those 2 commands:

#extract command

(zcat rootfs.gz 2>/dev/null || lzma d rootfs.gz -so) | cpio -id

#compress command

find . -print | cpio -o -H newc | lzma e -si -so > ../rootfs.gz

which I've found here: http://doc.slitaz.org/en:handbook:hacklivecd .

Thanks for help!

Offline

#2 2014-09-06 07:49:04

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Editing rootfs.gz file in Slitaz Rolling Version 24082014 (last version)

you can check it here:   

http://hg.slitaz.org/tazusb/file/0645a66ba186/tazusb

http://hg.slitaz.org/tazlito/file/0687ed780754/tazlito

Offline

#3 2014-09-06 07:58:11

Lessons
Member
Registered: 2014-09-05
Posts: 8

Re: Editing rootfs.gz file in Slitaz Rolling Version 24082014 (last version)

Thanks for links, I'll take a look ...

Offline

#4 2014-09-06 14:14:51

Lessons
Member
Registered: 2014-09-05
Posts: 8

Re: Editing rootfs.gz file in Slitaz Rolling Version 24082014 (last version)

neutral

I did not find anything very useful there.

Still need some help.

Offline

#5 2014-09-06 17:30:04

Lessons
Member
Registered: 2014-09-05
Posts: 8

Re: Editing rootfs.gz file in Slitaz Rolling Version 24082014 (last version)

Those  2 commands actually work!

But they should be executed upon a rootfs.gz file from RAM memory.

Can you tell me why?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]