__________________________________________ Ranga Nathan / CSG Systems Programmer - Specialist; Technical Services; BAX Global Inc. Irvine-California Tel: 714-442-7591 Fax: 714-442-2840
Lior Kesos <[EMAIL PROTECTED]> Sent by: Linux on 390 Port <[email protected]> 01/18/2005 06:35 AM Please respond to Lior Kesos <[EMAIL PROTECTED]> To [email protected] cc Subject initctl issues while initrd hacking - SLES9 - S390X Hi I've been working lately on a set of scripts that bootstrap a linux instance. They way I accomplish this is to have an extended initrd which sets up networking on the initrd and then nfs mounts a real disk dumping data upon it and in the end running init from the new mounted disk. In kernel 2.4/2.6 pivot_root was introduced to do exactly that and we've dealt with it. This is how I'm mounted now.. /dev/ram0 on / type ext2 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw) /dev/dasdb1 on /mnt type ext2 (ro) basically I'm running the next sequence of events trying to leave the initrd... cd /mnt pivot_root . initrd exec chroot . /bin/sh -c 'umount /initrd ; exec -a init.new /sbin/init' <dev/console >dev/console 2>&1 This crashes with: + /tmp/pivot_root . initrd + exec chroot . /bin/sh -c 'umount /initrd ; exec -a init.new /sbin/init ' umount: /initrd: device is busy Usage: init.new 0123456SsQqAaBbCcUu VFS: Cannot open root device "dasdb1" or unknown-block(0,0) Seems like initrd has this baked in. I had similar problems when changing the boot device. Would you perhaps have to do mkinitrd and zipl or the equivalent? Please append a correct "root=" boot option Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0) HCPGIR450W CP entered; disabled wait PSW 00020001 80000000 00000000 0046CB4C Now this is very odd because: 1. Shouldn't init read the inittab for the chrooted system (it exists -default runlevel - 3). 2. When I explicitly run init 3 I get a different error mentioning ... init.new: timeout opening/writing control channel /dev/initctl 3. If I use the pivot_root(8) manpages _first_ example (running sh instead of init) it works ok. I read about initctl and it (the pipe) exists in the new filesystem. I'm pretty much a RTFM kinda guy but I'm a bit stuck here - any ideas? respectfully Lior. -- Peace Love and Penguins - Lior Kesos ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
