forked from Bananymous/banan-os
BuildSystem: every file except /home/* is now owned by root
This commit is contained in:
parent
38dff41e25
commit
37f9404d93
|
@ -48,7 +48,8 @@ sudo mkfs.ext2 $PARTITION2 > /dev/null
|
||||||
|
|
||||||
sudo mount $PARTITION2 $MOUNT_DIR
|
sudo mount $PARTITION2 $MOUNT_DIR
|
||||||
|
|
||||||
sudo cp -r ${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
|
||||||
|
|
||||||
|
|
3
image.sh
3
image.sh
|
@ -15,7 +15,8 @@ ROOT_PARTITON=${LOOP_DEV}p2
|
||||||
|
|
||||||
sudo mount $ROOT_PARTITON $MOUNT_DIR
|
sudo mount $ROOT_PARTITON $MOUNT_DIR
|
||||||
|
|
||||||
sudo cp -r ${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