mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 09:38:34 +00:00
Set the volume label and make dd more idiomatic
This commit is contained in:
parent
0cc0c2534d
commit
252097a813
@ -16,13 +16,13 @@ w'
|
|||||||
|
|
||||||
lodev=$(losetup -f --show morpheus-boot.img) || exit 1
|
lodev=$(losetup -f --show morpheus-boot.img) || exit 1
|
||||||
partition="$lodev"p1
|
partition="$lodev"p1
|
||||||
mkfs.ext2 $partition || exit 1
|
mkfs.ext2 -L MORPHEUS $partition || exit 1
|
||||||
mount $partition /mnt || exit 1
|
mount $partition /mnt || exit 1
|
||||||
|
|
||||||
fakeroot cp -dar root/* /mnt
|
fakeroot cp -dar root/* /mnt
|
||||||
extlinux --install /mnt/boot || exit 1
|
extlinux --install /mnt/boot || exit 1
|
||||||
|
|
||||||
dd if=data/mbr.bin conv=notrunc bs=440 count=1 of=$lodev
|
dd if=data/mbr.bin of=$lodev conv=notrunc bs=440 count=1
|
||||||
sync
|
sync
|
||||||
|
|
||||||
umount /mnt
|
umount /mnt
|
||||||
|
Loading…
Reference in New Issue
Block a user