fix rootfs ownership

This commit is contained in:
GitHub Action
2020-08-22 19:13:52 +00:00
parent 037167b4cf
commit 00f2577c2b
7 changed files with 12 additions and 1 deletions

6
fix_ownership.sh Normal file
View File

@@ -0,0 +1,6 @@
LOOP_DEVICE=$(losetup -f)
losetup -o 100663296 ${LOOP_DEVICE} friendlywrt-*/out/*.img
rm -rf /mnt/friendlywrt-tmp && mkdir -p /mnt/friendlywrt-tmp
mount ${LOOP_DEVICE} /mnt/friendlywrt-tmp && chown -R root:root /mnt/friendlywrt-tmp && umount /mnt/friendlywrt-tmp
losetup -d ${LOOP_DEVICE}