morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 0239116cb981aa66cc3952525d429f3b09fa1ce2
parent 50858520ca8f750d8dedbab4fc33b53a2370cb0e
Author: sin <sin@2f30.org>
Date:   Tue,  4 Mar 2014 13:43:05 +0000

No need to use || exit 1

We run the script with set -e, so on the first error we will
exit automatically.

Diffstat:
Mstuff/create-bootable | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/stuff/create-bootable b/stuff/create-bootable @@ -26,14 +26,14 @@ w EOF ) | fdisk $img -lodev=$(losetup -f --show $img) || exit 1 +lodev=$(losetup -f --show $img) partition="$lodev"p1 -mkfs.ext2 -L MORPHEUS $partition || exit 1 -mount $partition /mnt || exit 1 +mkfs.ext2 -L MORPHEUS $partition +mount $partition /mnt rmdir /mnt/lost+found 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 sync