iglunix/createimg.sh

29 lines
391 B
Bash
Raw Normal View History

2021-01-31 13:41:39 +00:00
#!/bin/sh
2021-02-04 12:02:44 +00:00
dd if=../tiny-linux-bootloader/disk of=lazybox.img
TOTAL=`stat -c %s lazybox.img`
SECTOR=$(($TOTAL / 512))
dd if=/dev/zero count=$((3145727 - $SECTOR)) >> lazybox.img
echo "o
2021-01-30 07:29:13 +00:00
n
p
1
2021-02-04 12:02:44 +00:00
32256
2021-01-30 07:29:13 +00:00
2021-02-04 12:02:44 +00:00
a
1
2021-01-30 07:29:13 +00:00
w
2021-02-04 12:02:44 +00:00
" | fdisk lazybox.img
# losetup -o 32256 /dev/loop0 lazybox.img
# mkfs.vfat /dev/loop0
# mount /dev/loop0 ./isoroot
# #rm -r isoroot/*
# #cp -r isoout/* isoroot
# umount ./isoroot