morpheus

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

commit 1b466d49355281384d4f6d94e4a264c488d9999a
parent 802de1b75005a9a74050d21d489d057bb6619169
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue,  4 Mar 2014 17:10:46 +0100

create-bootable: use /mnt/morpheus as mountpoint

Diffstat:
Mstuff/create-bootable | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/stuff/create-bootable b/stuff/create-bootable @@ -8,6 +8,7 @@ if test "$2" = ""; then fi root=$1 img=$2 +mnt="/mnt/morpheus" set -e -x @@ -30,15 +31,16 @@ lodev=$(losetup -f) losetup "$lodev" "$img" partition="$lodev"p1 mkfs.ext2 -L MORPHEUS $partition -mount $partition /mnt -rmdir /mnt/lost+found +mkdir -p "$mnt" +mount $partition "$mnt" +rmdir "$mnt/lost+found" -fakeroot cp -arP "$root"/* /mnt -extlinux --install /mnt/boot +fakeroot cp -arP "$root"/* "$mnt" +extlinux --install "$mnt/boot" dd if=stuff/mbr.bin of=$lodev conv=notrunc bs=440 count=1 sync -umount /mnt +umount "$mnt" sleep 3 losetup -d $lodev