mirror of git://git.2f30.org/morpheus.git
No need to use || exit 1
We run the script with set -e, so on the first error we will exit automatically.
This commit is contained in:
parent
50858520ca
commit
0239116cb9
|
@ -26,14 +26,14 @@ w
|
||||||
EOF
|
EOF
|
||||||
) | fdisk $img
|
) | fdisk $img
|
||||||
|
|
||||||
lodev=$(losetup -f --show $img) || exit 1
|
lodev=$(losetup -f --show $img)
|
||||||
partition="$lodev"p1
|
partition="$lodev"p1
|
||||||
mkfs.ext2 -L MORPHEUS $partition || exit 1
|
mkfs.ext2 -L MORPHEUS $partition
|
||||||
mount $partition /mnt || exit 1
|
mount $partition /mnt
|
||||||
rmdir /mnt/lost+found
|
rmdir /mnt/lost+found
|
||||||
|
|
||||||
fakeroot cp -arP "$root"/* /mnt
|
fakeroot cp -arP "$root"/* /mnt
|
||||||
extlinux --install /mnt/boot || exit 1
|
extlinux --install /mnt/boot
|
||||||
|
|
||||||
dd if=stuff/mbr.bin of=$lodev conv=notrunc bs=440 count=1
|
dd if=stuff/mbr.bin of=$lodev conv=notrunc bs=440 count=1
|
||||||
sync
|
sync
|
||||||
|
|
Loading…
Reference in New Issue