mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
scripts/image: create NOOBS tarballs with fakeroot
Otherwise builder user ID will leak in and storage partition will be owned by that instead of root and lots of services will fail to start. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
6a01a9db3b
commit
e7e91da91c
@ -427,8 +427,8 @@ if [ "${1}" = "release" -o "${1}" = "mkimage" -o "${1}" = "noobs" ]; then
|
|||||||
rm -rf ${RELEASE_DIR}/${NOOBS_DISTRO}/Storage.tar.xz
|
rm -rf ${RELEASE_DIR}/${NOOBS_DISTRO}/Storage.tar.xz
|
||||||
|
|
||||||
# Create filesystem tarballs
|
# Create filesystem tarballs
|
||||||
tar cJf ${RELEASE_DIR}/${NOOBS_DISTRO}/System.tar.xz -C ${RELEASE_DIR}/${NOOBS_DISTRO}/System/ .
|
${TOOLCHAIN}/bin/fakeroot tar cJf ${RELEASE_DIR}/${NOOBS_DISTRO}/System.tar.xz -C ${RELEASE_DIR}/${NOOBS_DISTRO}/System/ .
|
||||||
tar cJf ${RELEASE_DIR}/${NOOBS_DISTRO}/Storage.tar.xz -C ${RELEASE_DIR}/${NOOBS_DISTRO}/Storage/ .
|
${TOOLCHAIN}/bin/fakeroot tar cJf ${RELEASE_DIR}/${NOOBS_DISTRO}/Storage.tar.xz -C ${RELEASE_DIR}/${NOOBS_DISTRO}/Storage/ .
|
||||||
|
|
||||||
# Remove filesystem dirs
|
# Remove filesystem dirs
|
||||||
rm -rf ${RELEASE_DIR}/${NOOBS_DISTRO}/System
|
rm -rf ${RELEASE_DIR}/${NOOBS_DISTRO}/System
|
||||||
|
Loading…
x
Reference in New Issue
Block a user