X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=mkit.sh;h=3d9d62e947538c97827110681015354cedb4653b;hb=f5739457558241e16a52c196f43394d145f110f2;hp=437a5f40e087c20e9e50ee99fce3899686ed6481;hpb=d96746a21b2c46d9c465376a165b0ee23c041e3e;p=rrq%2Ftiniest.git diff --git a/mkit.sh b/mkit.sh index 437a5f4..3d9d62e 100755 --- a/mkit.sh +++ b/mkit.sh @@ -26,7 +26,8 @@ echo "# Creating mapdepends.txt and mapfile.txt" awk ' BEGIN { print "###" > "mapdepends.txt"; print "###" > "mapfile.txt"; } $1=="Package:" {P=$2; next} -$1=="Depends:" {print P,$2 >> "mapdepends.txt";next } +$1=="Pre-Depends:" {print P,$0 >> "mapdepends.txt";next } +$1=="Depends:" {print P,$0 >> "mapdepends.txt";next } $1=="Filename:" {print P,$2 >> "mapfile.txt";next } ' ${PKGFILE} @@ -64,9 +65,9 @@ echo $KERNEL echo "# Create initrd filesystem" rm -fr initrd -echo "# Install busybox, and fluff it up" -fakechroot fakeroot \ -dpkg --log=dpkg.log --root=initrd -i $(debfile busybox-static) +echo "# Extract busybox, and fluff it up" +mkdir initrd +debextract initrd $(debfile busybox-static) for L in $(initrd/bin/busybox --listfull) ; do mkdir -p $(dirname initrd/$L) case "$L" in