SliTaz SliTaz Forum

You are not logged in.

#1 2014-06-07 17:08:51

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

If simply load standart initrd made by well known cat4321>rootfs - it works!

Loading it, running tazusb writefs gzip, overwriting initrd to new, reboot - error.

I tried both gzip and lzma, rc1 and last rolling, (really, every time before load I checked for right kernel bzimage file) add or remove root=/dev/null kernel option - all kernel panic.

root=/dev/ram, I found while searching also not helpful.

but in april version (before RC1) it just works.

/init not changed. I was even tried to overwrite /usr/bin/tazusb to before-rc1-version - no changes.

There was dbus loading problem since rc1- due to rewritten rcS. Maybe this is some connections.

[attachment=30733,1543]

i never use any NTFS on this drive. Two images for different kernel options (/dev/null...)

[attachment=30733,1544]

Offline

#2 2014-06-07 18:56:57

Guest
Guest

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Why did you 'cat4321>rootfs'?

SliTaz is designed to load as many of the squashfs files as there is for the amount of memory available.

#3 2014-06-07 19:59:13

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Who cares on design while main code not working. I'm talking about [c]cat rootfs4.gz rootf3.gz rootfs2.gz rootfs1.gz > rootfs.gz[/c]

just made it shorter - who used it - knows what I mean.

Anyway bug is not here.

Offline

#4 2014-06-07 20:42:13

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

I confirm this problem which also plagues [c]tazlito writefs[/c] which uses the same code.

Offline

#5 2014-06-08 01:02:52

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Loading from iso:

base, justx ->  tazusb writefs = bug free!

gtkonly, core -->  tazusb writefs = kernel panic

so, problem located somewhere in rootfs2.gz

Offline

#6 2014-06-08 02:40:20

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Heh, I've unpacked all the rootfs, one-by-one to the ext4 partition and I got the same result. It was about a week ago. Then I formatted partition as ext3, ext2 but no luck. And then I gave up, left without install the distro to my hard drive. But... Stop. It loaded using ntldr + grldr + rootfs1..4 as usually. Or?..

Offline

#7 2014-06-08 11:36:37

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

It seems I found it. Bug caused by util-linux-mount from gtkonly+core.

If loading multiple initrd (even cat'ed) - looks like /bin/mount from base flavor is used anyway before repacking.

util-linux-mount overwrites base busybox-builtin /bin/mount

I think, it have to be moved from /bin to /usr/bin.

for all 4 files in /util-linux-mount-2.24/fs/bin

also dbus service failed to start after repacking justx (rootfs4+3).

/var/run must be excluded here:

/usr/bin/tazusb line 479 must be

[c]for dir in /proc /run /sys /tmp /mnt /media /var/run[/c]

same must be for tazlito. not tested it yet

Offline

#8 2014-06-08 16:45:45

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

little mistake, not all /var/run ,just /var/run/dbus/pid  like in bootlog message error

Note about main topic bug - uninstalling util-linux-mount NOT solving error. /bin/mount /bin/mountpoint /bin/umount overwritten by it. So I move it to /usr/bin and unpack 3 base files from  [c]lzma d rootfs4.gz rootfs4.cpio[/c]

Then made tazusb writefs gzip and now it works for me. I hope it will be in repository, no way to release with such critical bugs.

Offline

#9 2014-06-08 20:18:26

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Thanks for all the research, az_ua. I have the same problem with tazlito writeiso lzma, which I reported a couple of days ago here. So, I just booted the 5.0-rc2 CD as "Just-X", set-up the keyboard, added a few applications and then gave it another go with tazlito. And this time I got a bootable ISO that worked. Great! The only fly in the soup was that the original CD wouldn't automatically eject, something I never encountered when I tried to make a new CD out of "SliTaz Live" ...

Exit or burn ISO to cdrom (Exit|burn) burn

eject: /dev/cdrom: Input/output error

Please insert a blank cdrom and press ENTER

Offline

#10 2014-06-08 20:38:44

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Fix one problem and break something else in the process.

Busybox eject has been broken since the post 4.0 release of cooking/5.0 because the live cd in the drive is auto mounted when spacefm/pcmanfm starts.

Busybox eject doesn't umount the drive so eject fails unless you umount in terminal prior to eject.

This was a problem with spacefm as well.

Util-linux-eject works because it umounts the disk before it ejects with it's depend util-linux-mount.

Offline

#11 2014-06-09 11:59:51

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

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

it effects also the slitaz-rolling-core.iso  - stops with the same kernel panic

Offline

#12 2014-06-09 22:22:06

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Nobody want to fix it?

  Solution was ready almost 2 days ago in my post above, even few hour before full-of-errors slitaz-rolling-core.iso was auto?-generated.

So, just move /bin files from util-linux-mount to /usr/bin, it is not right place for it. /bin/mount depends on /usr/lib/libmount, but it is not accessible exactly while booting 1-part(NOT-4in1)rootfs.

by the way I also preparing fixes for dbus+tazusb now. But for starting only. troubles began because  /var/run/ now not equals /run/

offtopic! Still struggling hard with multiple instances os dbus-daemon after re-login.  Can't got why /etc/xdg/autostart/pcmanfm link executing via dbus, also it should be running after lxpanel(which runs menu-cache) to get application in sidepanel working.

Offline

#13 2014-06-10 11:06:30

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

@bellard

/bin/mnt? Interesting way to solve it. I hope /bin/mountpoint is not in use. Thanks for feedback.

Also after boot writefs-gen'ed rootfs dbus failed to start and tazpanel running only manually due to /var/run is old+saved.

My edits:

/var/run to /run in [c]/usr/bin/tazpanel[/c] PIDFILE=/run/$NAME.pid

[c]/etc/init.d/dbus[/c]

line 26 and 46 now looks like

[c]mkdir -p /var/run/dbus && ln -s /var/run/dbus /run/dbus[/c]

(old one was mkdir -p /run/dbus) and it seems to be  improperly with current PIDFILE=/var/run/dbus/pid

Including above-described, my error-free rootfs was made by modified tazusb with exclude folder in line 479: [c]for dir in /var/run/dbus[/c]

UPDATE

I think this is better for dbus

[c]mkdir -p /run/dbus && ln -s /run/dbus /var/run/dbus[/c]

some little troubles with icons: pcmanfm was no icon in menu - I change it to "computer" like in mc.desktop file. No icon anywhere for gpicview.

Offline

#14 2014-06-10 12:38:32

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

@az_ua

Where you see /bin/mnt?

Really [c]mnt[/c] is function with goal to substitute [c]mount[/c] (which can be /bin/mount or in your variant also /usr/bin/mount) to [c]busybox mount[/c] (where busybox binary is /bin/busybox, and "mount" is option for busybox). So this construction always uses busybox's mount function regardless of existence or absence or substitution of the /bin/mount.

http://hg.slitaz.org/slitaz-boot-scripts/rev/79aea3c677ca#l1.7

Offline

#15 2014-06-10 16:53:28

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Core iso built with slitaz-boot-scripts-5.6.2 kernel panics.

Offline

#16 2014-06-11 03:20:35

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

There still seems to be no solution to the problem az_ua describes in the previous posts:

- ISOs generated with tazlito out of Live, Core or GTKonly panic on boot-up

- ISOs generated with tazlito out of JustX boot without a problem

In the latest version of tazlito there's now an "umount" ahead of the eject command, which solves the problem with the failing auto-eject after generating the ISO image. But there are still other problems which are related to this. Burning or blanking CDs fails for the same reason. It seems, every CD that's loaded gets instantly mounted which prevents wodim from doing its job. In Live, Core or GTKonly the PCManFM configuration could be responsible for the auto-mounting of loadad CDs. But as the problem also occurs in JustX there has to be some other process which mounts the CDs. The solution would be to either prevent CDs from being auto-mounted or to put an "umount" ahead of any process that stumbles over a mounted CD.

In SliTaz 3.0 CDs were not auto-mounted. Even the system CD wasn't mounted after boot-up and tazlito would only temporarily mount the system CD to pull in some stuff needed for the new ISO. But SliTaz 3.0 was using hal and things are different now. Still, if this is possible, I think it would be generally better not to auto-mount CDs.

Offline

#17 2014-06-12 14:45:21

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

Booting CD by System Tools-Create a LiveCD.

Now it is totally new Error.

In first post old panic was just after Freeing unused kernel memory.

Now next step (Switching to clocksource tsc) passed, then HANGS for a minute, with showing  input: ImPS/2... (before udevd[ starting in saved to file bootlog)

If no reset and wait - I can see

init SEGFAULT in libc2.14

This is not mount failed.

boot&HDDinstall of rolling iso works (rolling-core even not starts). This iso built with old init bootscripts.

After loading from HDD, I did tazusb writefs, load, and it works. Without dbus+xorg starting, but loaded, with util-linux-mount is present in tazpkg -l output!!!, mount -? shows that busybox-ver used = and no panic with old /init!

I will try it over, but now I begins to think, that topic-starting error caused only if current / is in RAM, like running tazusb from livecd, but nobody who using HDD-installed / can confirm it.

Anyway, 5.6.2 boot-script looks like fixes nothing. Even more, what works before not works now, but this may be my hardware specific problem.

For tazusb it is possible to use files from old rootfs4.gz as I described few days ago. But really no solution for downloaded by tazlito-wiz.

Offline

#18 2014-06-12 15:59:20

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

@az_ua

Virtualbox:

Boot into 5.0-rc2 in virtual cdrom drive, use tazinst(full install script) cdrom as install source,syslinux as bootloader,virtualbox hard drive image(ext4) as install target.

tazinst syslinux install bug:

Boot of install fails with "Could not find kernel image: vesamenu32"

Boot into live cd,mount hard drive image, copy /boot/isolinux/vesamenu32 to /boot/syslinux on image.

5.0-rc2 full install boots to desktop with no errors.

Recharge/update all packages

5.0-rc2 full install boots to desktop with no errors.

Slitaz-base.iso built with slitaz-boot-scripts-2.6.2 halts on boot before "Switching / to tmpfs..."

[c]tazlito clean-distro[/c]

Edit distro-packages.list to use slitaz-boot-scripts-2.6.1

[c]tazlito gen-distro[/c]

slitaz-base.iso boots to login

Offline

#19 2014-06-13 01:05:29

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: Error loading `tazusb writefs gzip` generated initrd. Since rc1 to latest june3rolling.

my previous message was about iso 2014-Jun-08

rolling works rolling-core not

Now about following, just found it

slitaz-rolling-core.iso    2014-Jun-10 20:23:05

slitaz-rolling.iso    2014-Jun-11 00:34:03

no loading, in any flavor, even base.

no init segfault like in tazlito-wiz generated

no kernel panic, just hangs

if try in virtualbox-high CPU usage.

by the way coommand for virtualbox start

insmod /lib/modules/3.2-slitaz/misc/vboxdrv.ko

At first I think cancelling to 5.6.1 bootscripts needed

But maybe this will help

looks like excess enter

1.44  do    echo "Loading module: $i"

    1.45 -    modprobe $i 2>/dev/null || insmod $(find /lib/modules|sed "/$i.ko/!dq")

    1.46 +    modprobe $i 2>/dev/null ||

    1.47 +    busybox insmod $(find /lib/modules|sed "/$i.ko/!dq")

    1.48  done

http://hg.slitaz.org/slitaz-boot-scripts/rev/79aea3c677ca

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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