Added scripts to create bootable image
This commit is contained in:
parent
0736d58ac7
commit
bbd6a84a3f
2 changed files with 128 additions and 0 deletions
19
createimg.sh
Normal file
19
createimg.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue