iglunix/createimg.sh
2021-02-10 20:00:20 +01:00

28 lines
395 B
Bash
Executable file

#!/bin/sh
dd if=../tiny-linux-bootloader/disk of=iglunix.img
exit
TOTAL=`stat -c %s iglunix.img`
SECTOR=$(($TOTAL / 512))
dd if=/dev/zero count=$((3145727 - $SECTOR)) >> iglunix.img
echo "o
n
p
1
32256
a
1
w
" | fdisk iglunix.img
# losetup -o 32256 /dev/loop0 iglunix.img
# mkfs.vfat /dev/loop0
# mount /dev/loop0 ./isoroot
# #rm -r isoroot/*
# #cp -r isoout/* isoroot
# umount ./isoroot