1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-16 12:38:34 +00:00

Switch to ext2 and use fakeroot when we copy the rootfs

This commit is contained in:
sin 2013-09-16 13:57:57 +01:00
parent 727e5c46bb
commit b5c9de9c13

@ -15,10 +15,10 @@ 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.ext4 $partition || exit 1 mkfs.ext2 $partition || exit 1
mount $partition /mnt || exit 1 mount $partition /mnt || exit 1
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 conv=notrunc bs=440 count=1 of=$lodev