forked from Bananymous/banan-os
BuildSystem: Don't set permissions on image creation
This is already handled by *new* tar ball sysroot
This commit is contained in:
parent
f46f5b2050
commit
d613da4b6c
|
@ -40,16 +40,11 @@ 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 mount $PARTITION3 $MOUNT_DIR
|
|
||||||
echo 'hello' | sudo tee ${MOUNT_DIR}/hello.txt > /dev/null
|
|
||||||
sudo umount $MOUNT_DIR
|
|
||||||
|
|
||||||
sudo mkfs.ext2 $PARTITION2 > /dev/null
|
sudo mkfs.ext2 $PARTITION2 > /dev/null
|
||||||
|
|
||||||
sudo mount $PARTITION2 $MOUNT_DIR
|
sudo mount $PARTITION2 $MOUNT_DIR
|
||||||
|
|
||||||
sudo cp -rp ${SYSROOT}/* ${MOUNT_DIR}/
|
sudo cp -rp ${SYSROOT}/* ${MOUNT_DIR}/
|
||||||
sudo find $MOUNT_DIR | grep -v "^${MOUNT_DIR}/home/" | sudo xargs chown 0:0
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
1
image.sh
1
image.sh
|
@ -16,7 +16,6 @@ ROOT_PARTITON=${LOOP_DEV}p2
|
||||||
sudo mount $ROOT_PARTITON $MOUNT_DIR
|
sudo mount $ROOT_PARTITON $MOUNT_DIR
|
||||||
|
|
||||||
sudo cp -rp ${SYSROOT}/* ${MOUNT_DIR}/
|
sudo cp -rp ${SYSROOT}/* ${MOUNT_DIR}/
|
||||||
sudo find $MOUNT_DIR | grep -v "^${MOUNT_DIR}/home/" | sudo xargs chown 0:0
|
|
||||||
|
|
||||||
sudo umount $MOUNT_DIR
|
sudo umount $MOUNT_DIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue