mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/image: add --remove-destination when copying filesystem
This is required to override symlinks which might exist there already.
This commit is contained in:
parent
fcdf6fa397
commit
a16a1a3cf8
@ -184,7 +184,7 @@ ln -sf /etc/issue ${INSTALL}/etc/motd
|
||||
|
||||
# Copy PROJECT related files to filesystem
|
||||
if [ -d "${PROJECT_DIR}/${PROJECT}/filesystem" ]; then
|
||||
cp -PR ${PROJECT_DIR}/${PROJECT}/filesystem/* ${INSTALL}
|
||||
cp -PR --remove-destination ${PROJECT_DIR}/${PROJECT}/filesystem/* ${INSTALL}
|
||||
# Install project specific systemd services
|
||||
for service in ${PROJECT_DIR}/${PROJECT}/filesystem/usr/lib/systemd/system/*.service; do
|
||||
if [ -f "${service}" ]; then
|
||||
@ -195,7 +195,7 @@ fi
|
||||
|
||||
# Copy DEVICE related files to filesystem
|
||||
if [ -n "${DEVICE}" -a -d "${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/filesystem" ]; then
|
||||
cp -PR ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/filesystem/* ${INSTALL}
|
||||
cp -PR --remove-destination ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/filesystem/* ${INSTALL}
|
||||
# Install device specific systemd services
|
||||
for service in ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/filesystem/usr/lib/systemd/system/*.service; do
|
||||
if [ -f "${service}" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user