Compare commits
No commits in common. "v962" and "v963" have entirely different histories.
@ -7,10 +7,13 @@
|
||||
|
||||
|
||||
|
||||
|
||||
3fAn LinuxFromScratch based Linux
|
||||
Distribution. You can boot the Live
|
||||
System with typing "Live" on the boot
|
||||
Promt. The default will start in
|
||||
installation modus.
|
||||
If you are on a Serial Console use
|
||||
"SERINST"!
|
||||
If you have problems booting, try
|
||||
to use NoSer on Boot Prompt
|
||||
|
14
init
14
init
@ -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 \
|
||||
traceroute true tty tunctl umount uname uncompress uniq \
|
||||
unzip uptime usleep vi wc wget which who whoami xargs \
|
||||
yes zcat; do
|
||||
yes zcat lspci; do
|
||||
ln -s busybox $i
|
||||
done
|
||||
cd - 2>&1 >/dev/null
|
||||
@ -114,10 +114,17 @@ fi
|
||||
if [ ! -d /var/lock/subsys ]; then
|
||||
mkdir -p /var/log/subsys
|
||||
fi
|
||||
if [ ! -f /etc/fstab ]; then
|
||||
touch /etc/fstab
|
||||
fi
|
||||
/sbin/modprobe usb-storage
|
||||
/etc/init.d/udev 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
|
||||
mount -o ro $i /mnt
|
||||
if [ -d /mnt/Viitor ]; then
|
||||
@ -127,9 +134,12 @@ for i in /dev/sr*; do
|
||||
umount /mnt
|
||||
done
|
||||
|
||||
pkill udevd
|
||||
|
||||
if [ "$FOUND" ]; then
|
||||
pkill udevd
|
||||
mount --move /dev /mnt/dev
|
||||
umount /sys
|
||||
umount /proc
|
||||
exec /sbin/switch_root /mnt /sbin/init
|
||||
else
|
||||
exec /bin/ash
|
||||
|
10
init.hd
10
init.hd
@ -117,6 +117,11 @@ fi
|
||||
/sbin/modprobe usb-storage
|
||||
/etc/init.d/udev 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
|
||||
DEVNAME=$DEVNAME`echo $i|awk -F "=" '{ if ($1 == "root" ) print $2 }'`
|
||||
done
|
||||
@ -131,9 +136,12 @@ for i in /sys/block/[hs]d?; do
|
||||
done
|
||||
fi
|
||||
done
|
||||
pkill udevd
|
||||
if [ ${ROOTDEV} ]; then
|
||||
mount /dev/$ROOTDEV /mnt
|
||||
pkill udevd
|
||||
mount --move /dev /mnt/dev
|
||||
umount /sys
|
||||
umount /proc
|
||||
exec /sbin/switch_root /mnt /sbin/init
|
||||
else
|
||||
exec /bin/ash
|
||||
|
8
init.usb
8
init.usb
@ -117,11 +117,19 @@ fi
|
||||
/sbin/modprobe usb-storage
|
||||
/etc/init.d/udev 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
|
||||
DEVNAME=`basename $i`
|
||||
mount /dev/$DEVNAME /mnt
|
||||
if [ -d /mnt/Viitor/install ]; then
|
||||
pkill udevd
|
||||
mount --move /dev /mnt/dev
|
||||
umount /sys
|
||||
umount /proc
|
||||
exec /sbin/switch_root /mnt /sbin/init
|
||||
fi
|
||||
umount /mnt
|
||||
|
Loading…
Reference in New Issue
Block a user