Compare commits
No commits in common. "v963" and "v962" have entirely different histories.
@ -7,13 +7,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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
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 \
|
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 lspci; do
|
yes zcat; do
|
||||||
ln -s busybox $i
|
ln -s busybox $i
|
||||||
done
|
done
|
||||||
cd - 2>&1 >/dev/null
|
cd - 2>&1 >/dev/null
|
||||||
@ -114,17 +114,10 @@ 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
|
||||||
@ -134,12 +127,9 @@ 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
10
init.hd
@ -117,11 +117,6 @@ 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
|
||||||
@ -136,12 +131,9 @@ 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
|
||||||
|
8
init.usb
8
init.usb
@ -117,19 +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 /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
|
||||||
|
Loading…
Reference in New Issue
Block a user