mirror of git://git.2f30.org/morpheus.git
create-bootable: use /mnt/morpheus as mountpoint
This commit is contained in:
parent
802de1b750
commit
1b466d4935
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue