BuildSystem: Cleanup disk image creation
This commit is contained in:
parent
5972c73950
commit
e75522a005
|
@ -40,14 +40,10 @@ PARTITION2=${LOOP_DEV}p2
|
|||
PARTITION3=${LOOP_DEV}p3
|
||||
|
||||
sudo mkfs.ext2 $PARTITION3 > /dev/null
|
||||
sudo mkfs.ext2 $PARTITION2 > /dev/null
|
||||
sudo mkfs.ext2 -d $SYSROOT $PARTITION2 > /dev/null
|
||||
|
||||
sudo mount $PARTITION2 $MOUNT_DIR
|
||||
|
||||
sudo cp -rp ${SYSROOT}/* ${MOUNT_DIR}/
|
||||
|
||||
sudo grub-install --no-floppy --target=i386-pc --modules="normal ext2 multiboot" --boot-directory=${MOUNT_DIR}/boot $LOOP_DEV > /dev/null
|
||||
|
||||
sudo umount $MOUNT_DIR
|
||||
|
||||
sudo losetup -d $LOOP_DEV
|
||||
|
|
Loading…
Reference in New Issue