autodetect hardware at boot. quiet kernel

This commit is contained in:
Natanael Copa 2009-01-02 09:23:32 +00:00
parent 7921216ba4
commit ebfe2cf1a7
2 changed files with 15 additions and 3 deletions

View File

@ -30,7 +30,7 @@ msg "Using kernel $kernel"
# create empty image dir
rm -rf "$image"
mkdir -p "$image"
mkdir -p "$image/dev" "$image/etc/rcS.d"
# unpack busybox and deps
tar -C $image -zxf $APKS/uclibc-[0-9]*.apk
@ -38,7 +38,19 @@ tar -C $image -zxf $APKS/busybox-[0-9]*.apk
tar -C $image -zxf $APKS/alpine-baselayout-[0-9]*.apk
tar -C $image -zxf $APKS/apk-tools-[0-9]*.apk
rm -f $image/.PKGINFO
cp $init $image
ln -sf /bin/busybox $image/init
# create misc devs and enable boot scripts
mknod $image/dev/null c 2 2
ln -s ../init.d/mdev $image/etc/rcS.d/S10mdev
ln -s ../init.d/hwdrivers $image/etc/rcS.d/S30hwdrivers
ln -s ../init.d/modutils $image/etc/rcS.d/S40modutils
# load those extra drivers
for i in ide-cd usb-storage ide-disk; do
echo $i >> $image/etc/modules
done
# copy kernel modules
kmods=$image/lib/modules/$kernel

2
mkiso
View File

@ -14,7 +14,7 @@ default test
label test
kernel /boot/vmlinuz
append initrd=/test.gz init=/sbin/init
append initrd=/test.gz init=/sbin/init quiet
EOF