X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=mkit.sh;h=e8dc6574ae53b3e76416d7e799dcb544ed9adda9;hb=04a4179aec03d0d93391870953c4b9d39163922e;hp=710a123ccde82e2fd7bb8e9efc78475f4aeceffc;hpb=4cacdc777c1fa8f8ddae16f3f100de6a3829cab7;p=rrq%2Ftiniest.git diff --git a/mkit.sh b/mkit.sh index 710a123..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} @@ -62,11 +64,11 @@ echo $KERNEL # later pivoting onto a "full" filesystem. echo "# Create initrd filesystem" -rm -r initrd +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 @@ -87,6 +89,7 @@ if [ ! -d kernel ] ; then debextract kernel $(debfile syslinux-common) debextract kernel $(debfile syslinux-efi) debextract kernel $(debfile syslinux-utils) + debextract kernel $(debfile isolinux) fi echo "# Include some kernel modules in the initrd" @@ -94,7 +97,11 @@ MODULES=( # disk scsi_common scsi_mod libata ata_piix ata_generic cdrom sr_mod crc32-pclmul crct10dif_common crc-t10dif crc64 crc64-rocksoft - t10-pi sd_mod sg nls_cp437 nls_ascii fat vfat ext4 isofs + t10-pi sd_mod sg + nls_cp437 nls_ascii fat vfat + crc32c_generic jbd2 mbcache crc16 ext4 + isofs + overlay # input psmouse evdev # network @@ -147,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 <