Skip to content

Commit

Permalink
fix: fix rootfs file permission by chown
Browse files Browse the repository at this point in the history
Fix error with message like:
> sudo: /etc/sudo.conf is owned by uid 1000, should be 0
  • Loading branch information
initdc committed Sep 22, 2022
1 parent 11bda5a commit 43f0900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def main
`tar -C #{ROOTFS_DIR} -zxvf #{CACHE_DIR}/#{FILE}`
`cp -ar vendor-resources/intel-edison/* #{ROOTFS_DIR}`
`cp -ar vendor-resources/intel-edison/lib/* #{ROOTFS_DIR}/lib`
`chown root:root -R #{ROOTFS_DIR}`

mount ROOTFS_DIR
`chroot #{ROOTFS_DIR} /bin/sh /root/config.sh`
Expand Down

0 comments on commit 43f0900

Please sign in to comment.