Commit ebfe2cf1 authored by Natanael Copa's avatar Natanael Copa
Browse files

autodetect hardware at boot. quiet kernel

parent 7921216b
......@@ -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
# copy kernel modules
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment