X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=mkit.sh;h=e8dc6574ae53b3e76416d7e799dcb544ed9adda9;hb=ce449e25d76296e9e2ea480ca4823b6795efd683;hp=437a5f40e087c20e9e50ee99fce3899686ed6481;hpb=d96746a21b2c46d9c465376a165b0ee23c041e3e;p=rrq%2Ftiniest.git diff --git a/mkit.sh b/mkit.sh index 437a5f4..e8dc657 100755 --- a/mkit.sh +++ b/mkit.sh @@ -14,6 +14,7 @@ REPO="deb.devuan.org/merged" SUITE="daedalus" SECTION="main" ARCH="amd64" +MBR=gpt # or dos PKGFILE=${REPO//\//_}_${SUITE}_${SECTION}_binary-${ARCH}_Packages if [ ! -r $PKGFILE ] ; then @@ -26,7 +27,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 +66,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 @@ -152,8 +154,10 @@ echo "# Now pack up that initrd as initrd.gz" rm -f bootimage.raw dd if=/dev/zero of=bootimage.raw bs=32M count=1 -# Prepare a dos partition table with a first partition marked as EFI +# Prepare a gpt/dos partition table with a first partition marked as EFI sfdisk bootimage.raw <