diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-02 09:23:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-02 09:23:32 +0000 |
commit | ebfe2cf1a71bddfa2f4d61b47a933ca5cd27f267 (patch) | |
tree | 7482758b9c862e09604daa91651e7a7103448425 /mkinitram | |
parent | 7921216ba4aa5274b0863f24d329f426d83e06ec (diff) | |
download | abuild-ebfe2cf1a71bddfa2f4d61b47a933ca5cd27f267.tar.gz abuild-ebfe2cf1a71bddfa2f4d61b47a933ca5cd27f267.tar.bz2 abuild-ebfe2cf1a71bddfa2f4d61b47a933ca5cd27f267.tar.xz abuild-ebfe2cf1a71bddfa2f4d61b47a933ca5cd27f267.zip |
autodetect hardware at boot. quiet kernel
Diffstat (limited to 'mkinitram')
-rw-r--r-- | mkinitram | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |