BuildSystem: Cleanup disk image creation

This commit is contained in:
Bananymous 2023-09-08 02:41:39 +03:00
parent 0ec4f970f7
commit 64ff4c232a
2 changed files with 2 additions and 6 deletions

View File

@ -40,14 +40,10 @@ PARTITION2=${LOOP_DEV}p2
PARTITION3=${LOOP_DEV}p3 PARTITION3=${LOOP_DEV}p3
sudo mkfs.ext2 $PARTITION3 > /dev/null 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 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 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 umount $MOUNT_DIR
sudo losetup -d $LOOP_DEV sudo losetup -d $LOOP_DEV

View File

@ -15,7 +15,7 @@ ROOT_PARTITON=${LOOP_DEV}p2
sudo mount $ROOT_PARTITON $MOUNT_DIR sudo mount $ROOT_PARTITON $MOUNT_DIR
sudo cp -rp ${SYSROOT}/* ${MOUNT_DIR}/ sudo rsync -a ${SYSROOT}/* ${MOUNT_DIR}/
sudo umount $MOUNT_DIR sudo umount $MOUNT_DIR