You are not logged in.

#1 2008-11-10 01:34:23

supdaniel
Member
Registered: 2008-05-26
Posts: 17

Kernel panic with larch5.3 building CD!

Hi, could someone kindly help this.

I got the kernel panic with larch5.3 building CD. I didn't get any error messages during the creating. The error message of starting system is in belowing words.

:: Initializing writable layer for union (overlay)
/init: 193: /tfs/system/usr/bin/lzop: not found
/init: 193: /tfs/system/bin/tar not found
:Setting up union file system
unionfs: error accessing lower directory '/tfs/overlay' (error -2)
unionfs: read_super: error while parsing options (err= -2)
:: End of live system set-up
:: Initramfs Completed - control passing to kinit
Kernel panic - not syncing: Attempted to kill init!

Offline

#2 2008-11-10 07:05:34

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Kernel panic with larch5.3 building CD!

It looks like you are trying to use unionfs - this is not a good idea. Originally larch was based on unionfs, but I haven't tested it for ages and I guess it probably doesn't work. You need to use aufs. If you can't find enough info in the docs, post again.

Offline

#3 2008-11-10 07:39:01

supdaniel
Member
Registered: 2008-05-26
Posts: 17

Re: Kernel panic with larch5.3 building CD!

Hi, gradgrind, Thanks a lot for your answer. Could you let me know which argument for larch to ceate aufs? Thanks.

Offline

#4 2008-11-10 09:51:04

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Kernel panic with larch5.3 building CD!

You don't need a special argument, you just need to install aufs ( I assume you are trying to larchify an existing system? - if using mklarch aufs needs to be in the 'addepacks' file in the profile).

Offline

#5 2008-11-10 15:58:00

paraflu
Member
Registered: 2008-02-23
Posts: 53

Re: Kernel panic with larch5.3 building CD!

Hello,

supdaniel

I hope i can help you somehow.
Your post let became me a little bit frightend,
because it could have something to do with larch itself. Mmmh...
Why? Because of the missing tar.
But maybe i could help you a little bit.
As gradgrind mentioned aufs and lzop is needed.
I hope you use larchify otherwise my post is
pointless.
I don`t know how you get to the point,
where you use unionfs, but there is a way to clearify this.
Look at /lib/initcpio/mkinitcpio.conf
There has to be larch2_aufs in it, otherwise edit it.
But it should be the default. I never experienced something else
the last updates.

Greetings

Offline

#6 2008-11-11 01:50:04

supdaniel
Member
Registered: 2008-05-26
Posts: 17

Re: Kernel panic with larch5.3 building CD!

Hi, paraflu Thanks a lot for your reply. My situation is / mount to /dev/sda3, /boot mount to /dev/sda1, /home mount to /dev/sda4 and swap mount to /dev/sda2. I installed larch5.3 in my home directory /home/supdaniel/larch. I just use simply command ./larchify / to build the livecd and I also added gparted, squashfs-tools, lzop, syslinux, cdrkit packages. Could you kindly let me know how can I create the exiting system correct that make me in trouble for a few days. Thanks.

Offline

#7 2008-11-11 07:47:29

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Kernel panic with larch5.3 building CD!

You didn't mention aufs - you really must install that. Also larch-live is necessary (from the larch repository). If you are building a cd, you will also want eject. I think, then, './larchify /' should work.

Offline

#8 2008-11-11 08:35:44

supdaniel
Member
Registered: 2008-05-26
Posts: 17

Re: Kernel panic with larch5.3 building CD!

Hi gradgrind, Thanks for your reply. Yes, I have added aufs, eject packages. But it seems still cannot work. Sorry for many troubles.

One think. When I create the iso file, it gives a warning message.

// Build without a profile? [y/N]: y

//
// **********************************************************
//
// *****    Creating live CD from system at ''
//
// This will delete EVERYTHING under  ::: /.larch/cd :::
//
// I really mean it ... Are you sure you want to do this?
// **********************************************************
[y/N]: y

WARNING:
  You seem to have installed a package containing modules
which aren't compatible with your kernel.
Please check that this won't cause problems.
Maybe you need the corresponding package
for your kernel?
chroot: cannot change root directory to pacman: No such file or directory

   Package:

Continue? [y/N]: y
// Kernel version: 2.6.27-ARCH
//  -> regenerating kernel dependencies

Using aufs
// copying cd-root to /.larch/cd
// copying kernel from /boot to /.larch/cd/boot/vmlinuz
//  ... using vmlinuz26
// calling gen_larch_init to generate the initramfs
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]

Offline

#9 2008-11-11 12:47:07

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Kernel panic with larch5.3 building CD!

Well done, you've found a bug in larch!

But I'm not sure that it's what is causing your problem ...

Could you first look for the modules that are for the wrong kernel (in /lib/modules/ ...) and remove them. Or maybe you have more than one kernel installed? If you can remove them the larch error should not occur - it happens when it is trying to tell you which package supplies the wrong kernel module.

If you can't remove the problem module(s), you can perhaps fix larch (until I get around to updating it). I think you can change line 502 in larch/buildlive:

'chroot ${INSTLDIR}' -> 'chrootx' (without the quotation marks)

EDIT:
Sorry that's wrong, it should be:

'chroot ${INSTLDIR}' -> '${chrootx}' (without the quotation marks)

Last edited by gradgrind (2008-11-13 08:20:25)

Offline

#10 2008-11-12 01:35:07

supdaniel
Member
Registered: 2008-05-26
Posts: 17

Re: Kernel panic with larch5.3 building CD!

Excellent! Thanks a lot. I will try this solution.:)

Offline

#11 2008-11-12 10:52:03

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Kernel panic with larch5.3 building CD!

What's wrong with unionfs?  (The official Arch install cd uses it btw)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#12 2008-11-13 08:25:33

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Kernel panic with larch5.3 building CD!

Dieter@be wrote:

What's wrong with unionfs?  (The official Arch install cd uses it btw)

A few kernel versions back unionfs stopped working. At that point I switched all my attention to aufs. I don't know if unionfs will work with larch now, I haven't tried it. (I suppose if it's being used in the install CD it must work, at least to some extent). There is, however, one big advantage to aufs (in larch) - it allows relatively easy and efficient implementation of an overlay merge (used in session saving), using a feature not supported in unionfs.

Offline

#13 2009-04-13 20:04:12

stanger
Member
Registered: 2006-05-19
Posts: 15

Re: Kernel panic with larch5.3 building CD!

Hi, aufs need update with new kernel 2.6.29

Offline

Board footer

Powered by FluxBB