Fixes
This commit is contained in:
parent
72a3dbf39c
commit
9f9fded8e9
5 changed files with 106 additions and 58 deletions
33
createimg.sh
33
createimg.sh
|
@ -1,21 +1,28 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat > fdiskscript << EOF
|
||||
o
|
||||
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
|
||||
n
|
||||
p
|
||||
1
|
||||
63
|
||||
32256
|
||||
|
||||
t
|
||||
ef
|
||||
a
|
||||
1
|
||||
w
|
||||
EOF
|
||||
cat fdiskscript | fdisk lazybox.img
|
||||
" | 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
|
||||
# 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