https://bugzilla.novell.com/show_bug.cgi?id=430140
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=430140#c7
--- Comment #7 from Olaf Hering 2008-09-30 07:57:42 MDT ---
This /init script works for me, it symlinks a loop mounted initrd and passes
control to real linuxrc:
#!/bin/bash
#et -x
PATH=/sbin:/bin:/usr/bin
or=/tmpfs_mount
nr=/install_initrd_loop_mount
sf=initrd.squashfs
cd /
insmod /loop.ko
insmod /squashfs.ko
mkdir -p $or
mkdir -p /etc
echo -n '' >> /etc/mtab
mount -n -t tmpfs initrd.tmpfs.for.squashfs $or
cp -v $sf $or/$sf
mkdir -p $or/$nr
mount -n -oro,loop -t squashfs $or/$sf $or$nr
for i in `cd $or/$nr ; find * -type d` ; do
mkdir -p $or/$i
done
cd $or
for i in `cd $or/$nr ; find * -type f -o -type l` ; do
ln -sfbn $nr/$i $or/$i
done
cp -aL --remove-destination $or/$nr/dev/* $or/dev/
exec /lib/mkinitrd/bin/run-init -c /dev/console $or /init
I will integrate it into installation-images.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.