mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-26 10:31:40 +00:00
fix: Ensure any created .filelist is symlinked with expected prefix and correct permissions (LP: #2033751)
If a .filelist is present, use it as the filelist for the image by symlinking with expected name and updating permissions
This commit is contained in:
parent
f8bd628c83
commit
c72d1a7f2b
@ -597,6 +597,14 @@ if [ -e "binary/$INITFS/filesystem.packages" ]; then
|
|||||||
ln "binary/$INITFS/filesystem.packages" "$PREFIX.manifest"
|
ln "binary/$INITFS/filesystem.packages" "$PREFIX.manifest"
|
||||||
chmod 644 "$PREFIX.manifest"
|
chmod 644 "$PREFIX.manifest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If a .filelist is present, use it as the filelist for the image by
|
||||||
|
# symlinking with expected name and updating permissions
|
||||||
|
if [ -e "binary/$INITFS/filesystem.filelist" ]; then
|
||||||
|
ln "binary/$INITFS/filesystem.filelist" "$PREFIX.filelist"
|
||||||
|
chmod 644 "$PREFIX.filelist"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "binary/$INITFS/filesystem.packages-remove" ]; then
|
if [ -e "binary/$INITFS/filesystem.packages-remove" ]; then
|
||||||
# Not a typo, empty manifest-remove has a single LF in it. :/
|
# Not a typo, empty manifest-remove has a single LF in it. :/
|
||||||
if [ $(cat binary/$INITFS/filesystem.packages-remove | wc -c) -gt 1 ]; then
|
if [ $(cat binary/$INITFS/filesystem.packages-remove | wc -c) -gt 1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user