public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] busybox-1.23.0 not assembling RAID root
@ 2015-01-19 21:55 Mark Knecht
  2015-01-20  2:13 ` bitlord
  2015-01-20  2:34 ` Randy Barlow
  0 siblings, 2 replies; 8+ messages in thread
From: Mark Knecht @ 2015-01-19 21:55 UTC (permalink / raw
  To: Gentoo AMD64

Hi,
   There was an update to stable busybox this weekend choosing version
1.23.0 as the new stable version. Since this update, for NEW kernels
only, I'm unable to assemble my RAID6 root device and therefore the
kernel won't boot. Has anyone else had similar problems? I've looked
around for recent posts, etc., but haven't found anything as of yet
but the gatekeeper in the Gentoo Bugzilla environment won't let me
file a bug report.

   At issue here is assembling the root RAID device. I build the
initramfs into the kernel for exactly this sort of reason. Other than
changing a few RAID UUIDs this setup hasn't changed in years. I masked
1.23.0, went back to 1.21.0 and that still works for new kernel so it
appears to be a busybox issue.

   My configuration follows. initramfs.config is referenced in my
kernel config file which then loads initramfs_init_new.sh to do the
work. The failure is three messages:

/init: line 16: mount: not found
/init: line 17: mount: not found
/init: line 18: mount: not found

which appear to correlate with lines 16-18:

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs none /dev

   Any input are greatly appreciated.

Thanks,
Mark



mark@c2RAID6 ~ $ cat /usr/src/initramfs.config
dir /bin 755 0 0
file /bin/busybox /bin/busybox 755 0 0
slink /bin/sh busybox 777 0 0

dir /realroot 755 0 0
dir /etc 755 0 0
dir /proc 755 0 0
dir /sys 755 0 0

dir /sbin 755 0 0
file /sbin/mdadm /sbin/mdadm 755 0 0

file /sbin/e2fsck /sbin/e2fsck 755 0 0
dir /lib 755 0 0
file /lib/libext2fs.so /usr/lib64/libext2fs.so 755 0 0
file /etc/mdadm.conf /usr/src/mdadm_initramfs.conf 755 0 0

dir /dev 755 0 0
nod /dev/console 600 0 0 c 5 1
nod /dev/null 666 0 0 c 1 3
nod /dev/tty 666 0 0 c 5 0
nod /dev/urandom 666 0 0 c 1 9

file /init /usr/src/initramfs_init_new.sh 755 0 0
mark@c2RAID6 ~ $




mark@c2RAID6 ~ $ cat /usr/src/initramfs_init_new.sh
#!/bin/busybox sh

rescue_shell() {
    echo "-----"
    echo "!!!!!"
    echo "Something went wrong."
    echo "Dropping into busybox"
    echo "!!!!!"
    echo "-----"
    busybox --install -s
    exec /bin/sh
}


# Mount the /proc and /sys filesystems.
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs none /dev

# Do your stuff here.
echo "   "
echo "This init script assembles the RAID6 root as /dev/md3"
echo "mounts it as rootfs and, if there are no problems,"
echo "boots it up, else calls rescue_shell/busybox"
echo "   "

mdadm --assemble /dev/md3

# Mount the root filesystem.
mount -o ro /dev/md3 /realroot  || rescue_shell

# Clean up.
umount /dev
umount /proc
umount /sys

# Boot the real thing.
exec switch_root /realroot /sbin/init
mark@c2RAID6 ~ $


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-22 14:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-19 21:55 [gentoo-amd64] busybox-1.23.0 not assembling RAID root Mark Knecht
2015-01-20  2:13 ` bitlord
2015-01-20 22:43   ` Mark Knecht
2015-01-21 17:28     ` Douglas J Hunley
2015-01-22 14:43       ` Mark Knecht
2015-01-20  2:34 ` Randy Barlow
2015-01-20  5:03   ` [gentoo-amd64] " Duncan
2015-01-20 22:45   ` [gentoo-amd64] " Mark Knecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox