X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=mkit.sh;h=64e461e3099cf7ec4a1f6de0891e113d7b78a37a;hb=a1eb8ab8aacf7a2363345a95e2a162f73352f13a;hp=710a123ccde82e2fd7bb8e9efc78475f4aeceffc;hpb=4cacdc777c1fa8f8ddae16f3f100de6a3829cab7;p=rrq%2Ftiniest.git diff --git a/mkit.sh b/mkit.sh index 710a123..64e461e 100755 --- a/mkit.sh +++ b/mkit.sh @@ -62,7 +62,7 @@ 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 \ @@ -94,7 +94,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 @@ -159,7 +163,7 @@ IMG="-i bootimage.raw@@$((2048*512))" # Add an ext2 filesystem at offset 61440*512 # Copy initrd.gz and kernel into the fat filesystem root -mke2fs -E offset=$((61440*512)) -F bootimage.raw +mke2fs -t ext4 -E offset=$((34816*512)) -F bootimage.raw mcopy $IMG initrd.gz :: mcopy $IMG kernel/boot/vm* ::/vmlinuz