Added scripts to create bootable image

This commit is contained in:
Ella-0 2021-01-30 07:29:13 +00:00
parent 0736d58ac7
commit bbd6a84a3f
2 changed files with 128 additions and 0 deletions

19
createimg.sh Normal file
View file

@ -0,0 +1,19 @@
cat > fdiskscript << EOF
o
n
p
1
63
t
ef
w
EOF
cat fdiskscript | 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