Hello.
I've been working on an initramfs prototype for Kadischi and it seems I've got it under wraps. Could all testers of x86 and x86_64 Fedora Core repository users test these two files?
Just simply backup your original /usr/share/kadischi/livecd-mkinitrd.sh and /usr/share/kadischi/initrd/livecd-linuxrc files and replace them with the two attached, respoctively. This may or may not rectify the issue with x86_64 CD users.
We hope it does, please send feedback to fedora-livecd-list@redhat.com
J. Hartline
#!/bin/nash
mount -t proc /proc /proc
echo Mounting proc filesystem echo Mounting sysfs filesystem mount -t sysfs /sys /sys echo Creating /dev mount -o mode=0755 -t tmpfs /dev /dev mkdir /dev/pts mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts mkdir /dev/shm #mkdir /dev/mapper echo Creating initial device nodes mknod /dev/null c 1 3 mknod /dev/zero c 1 5 mknod /dev/systty c 4 0 mknod /dev/tty c 5 0 mknod /dev/console c 5 1 mknod /dev/ptmx c 5 2 mknod /dev/rtc c 10 135 mknod /dev/tty0 c 4 0 mknod /dev/tty1 c 4 1 mknod /dev/tty2 c 4 2 mknod /dev/tty3 c 4 3 mknod /dev/tty4 c 4 4 mknod /dev/tty5 c 4 5 mknod /dev/tty6 c 4 6 mknod /dev/tty7 c 4 7 mknod /dev/tty8 c 4 8 mknod /dev/tty9 c 4 9 mknod /dev/tty10 c 4 10 mknod /dev/tty11 c 4 11 mknod /dev/tty12 c 4 12 mknod /dev/ttyS0 c 4 64 mknod /dev/ttyS1 c 4 65 mknod /dev/ttyS2 c 4 66 mknod /dev/ttyS3 c 4 67 mknod /dev/loop0 b 7 0 mknod /dev/loop1 b 7 1 mknod /dev/loop2 b 7 2 mknod /dev/loop3 b 7 3 mknod /dev/loop4 b 7 4 mknod /dev/loop5 b 7 5 mknod /dev/loop6 b 7 6 mknod /dev/loop7 b 7 7 #mknod /dev/root b 7 1 echo Setting up hotplug. hotplug echo Creating block device nodes. mkblkdevs echo "Loading jbd.ko module" modprobe jbd echo "Loading ext3.ko module" modprobe ext3 echo "Loading dm-mod.ko module" modprobe dm-mod echo "Loading dm-mirror.ko module" modprobe dm-mirror echo "Loading dm-zero.ko module" modprobe dm-zero echo "Loading dm-snapshot.ko module" modprobe dm-snapshot echo Making device-mapper control node mkdmnod mkblkdevs echo Scanning logical volumes lvm vgscan --ignorelockingfailure echo Activating logical volumes lvm vgchange -ay --ignorelockingfailure VolGroup00
# Modprobe and find-live-cd modprobe loop modprobe squashfs find-live-cd /cdrom
# Make kernel don't mount root fs echo 0x100 > /proc/sys/kernel/real-root-dev
echo "Mounting root filesystem" /bin/busybox mount -t squashfs -oloop,ro /cdrom/kadischi.sqsh /sysroot echo Creating root device. #echo "Doing the pivot_root" # mount /sysroot #pivot_root /sysroot /sysroot/initrd setuproot
echo "Setting up readonly-root" /bin/busybox chroot /sysroot /etc/rc.readonly linuxrc switchroot
On Sun, 2006-08-27 at 17:57 -0500, Jasper O'neal Hartline wrote:
I've been working on an initramfs prototype for Kadischi and it seems I've got it under wraps. Could all testers of x86 and x86_64 Fedora Core repository users test these two files?
Ugh. Why not use the actual stock mkinitrd pieces with just an appropriate livecd-mkrootdev as I've outlined a few times previously and implemented in my hg repo... :/
There's a lot of logic in mkinitrd to handle a lot of cases and trying to replicate all of that in a live CD specific environment is just going to lead to problems that are very difficult to debug
Jeremy
Hehe.. I can see the scrunching on your face now.. It was actually simple to do, it should fix the problem with x86_64 bootstraps. I slimmed the livecd-mkinitrd.sh (mkinitrd) script WAY down in the process.
This doesn't mean much but I think we can probably do as you suggest and use /sbin/mkinitrd on the host. I'll experiment with this soon after I get done with a current tester on x86_64.
J. Hartline
Jeremy Katz wrote:
On Sun, 2006-08-27 at 17:57 -0500, Jasper O'neal Hartline wrote:
I've been working on an initramfs prototype for Kadischi and it seems I've got it under wraps. Could all testers of x86 and x86_64 Fedora Core repository users test these two files?
Ugh. Why not use the actual stock mkinitrd pieces with just an appropriate livecd-mkrootdev as I've outlined a few times previously and implemented in my hg repo... :/
There's a lot of logic in mkinitrd to handle a lot of cases and trying to replicate all of that in a live CD specific environment is just going to lead to problems that are very difficult to debug
livecd@lists.fedoraproject.org