Compare commits

...

No commits in common. "v962" and "v963" have entirely different histories.
v962 ... v963

4 changed files with 32 additions and 3 deletions

View File

@ -7,10 +7,13 @@
3fAn LinuxFromScratch based Linux 3fAn LinuxFromScratch based Linux
Distribution. You can boot the Live Distribution. You can boot the Live
System with typing "Live" on the boot System with typing "Live" on the boot
Promt. The default will start in Promt. The default will start in
installation modus. installation modus.
If you are on a Serial Console use
"SERINST"!
If you have problems booting, try If you have problems booting, try
to use NoSer on Boot Prompt to use NoSer on Boot Prompt

14
init
View File

@ -73,7 +73,7 @@ for i in [ [[ acpid addgroup adduser ar arp arping ash awk \
stty su sync tail tar tee telnet test tftp top touch \ stty su sync tail tar tee telnet test tftp top touch \
traceroute true tty tunctl umount uname uncompress uniq \ traceroute true tty tunctl umount uname uncompress uniq \
unzip uptime usleep vi wc wget which who whoami xargs \ unzip uptime usleep vi wc wget which who whoami xargs \
yes zcat; do yes zcat lspci; do
ln -s busybox $i ln -s busybox $i
done done
cd - 2>&1 >/dev/null cd - 2>&1 >/dev/null
@ -114,10 +114,17 @@ fi
if [ ! -d /var/lock/subsys ]; then if [ ! -d /var/lock/subsys ]; then
mkdir -p /var/log/subsys mkdir -p /var/log/subsys
fi fi
if [ ! -f /etc/fstab ]; then
touch /etc/fstab
fi
/sbin/modprobe usb-storage /sbin/modprobe usb-storage
/etc/init.d/udev start /etc/init.d/udev start
/etc/init.d/hotplug start /etc/init.d/hotplug start
for i in $(/bin/find /lib/modules -type f -name "*.ko"); do
/sbin/modprobe $(/bin/basename $i|/bin/sed -e "s/\.ko$//")
done
for i in /dev/sr*; do for i in /dev/sr*; do
mount -o ro $i /mnt mount -o ro $i /mnt
if [ -d /mnt/Viitor ]; then if [ -d /mnt/Viitor ]; then
@ -127,9 +134,12 @@ for i in /dev/sr*; do
umount /mnt umount /mnt
done done
pkill udevd
if [ "$FOUND" ]; then if [ "$FOUND" ]; then
pkill udevd
mount --move /dev /mnt/dev
umount /sys
umount /proc
exec /sbin/switch_root /mnt /sbin/init exec /sbin/switch_root /mnt /sbin/init
else else
exec /bin/ash exec /bin/ash

10
init.hd
View File

@ -117,6 +117,11 @@ fi
/sbin/modprobe usb-storage /sbin/modprobe usb-storage
/etc/init.d/udev start /etc/init.d/udev start
/etc/init.d/hotplug start /etc/init.d/hotplug start
for i in $(find /lib/modules -type f -name "*.ko"); do
modprobe $(basename $i|sed -e "s/\.ko$//")
done
for i in `cat /proc/cmdline`; do for i in `cat /proc/cmdline`; do
DEVNAME=$DEVNAME`echo $i|awk -F "=" '{ if ($1 == "root" ) print $2 }'` DEVNAME=$DEVNAME`echo $i|awk -F "=" '{ if ($1 == "root" ) print $2 }'`
done done
@ -131,9 +136,12 @@ for i in /sys/block/[hs]d?; do
done done
fi fi
done done
pkill udevd
if [ ${ROOTDEV} ]; then if [ ${ROOTDEV} ]; then
mount /dev/$ROOTDEV /mnt mount /dev/$ROOTDEV /mnt
pkill udevd
mount --move /dev /mnt/dev
umount /sys
umount /proc
exec /sbin/switch_root /mnt /sbin/init exec /sbin/switch_root /mnt /sbin/init
else else
exec /bin/ash exec /bin/ash

View File

@ -117,11 +117,19 @@ fi
/sbin/modprobe usb-storage /sbin/modprobe usb-storage
/etc/init.d/udev start /etc/init.d/udev start
/etc/init.d/hotplug start /etc/init.d/hotplug start
for i in $(find /lib/modules -type f -name "*.ko"); do
modprobe $(basename $i|sed -e "s/\.ko$//")
done
for i in /sys/block/sd?; do for i in /sys/block/sd?; do
DEVNAME=`basename $i` DEVNAME=`basename $i`
mount /dev/$DEVNAME /mnt mount /dev/$DEVNAME /mnt
if [ -d /mnt/Viitor/install ]; then if [ -d /mnt/Viitor/install ]; then
pkill udevd pkill udevd
mount --move /dev /mnt/dev
umount /sys
umount /proc
exec /sbin/switch_root /mnt /sbin/init exec /sbin/switch_root /mnt /sbin/init
fi fi
umount /mnt umount /mnt