Merge branch 'pr/fix-sed' into 'main'

tier-0: fix sed invocation

See merge request fedora/bootc/base-images!55
This commit is contained in:
Colin Walters (Red Hat) 2024-09-20 18:31:02 +00:00
commit 8a37080d85
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ postprocess:
# tmpfiles.d unit for `/var/roothome` is fine, but this actually doesn't # tmpfiles.d unit for `/var/roothome` is fine, but this actually doesn't
# work if we want to use tmpfiles.d to write to `/root/.ssh` because # work if we want to use tmpfiles.d to write to `/root/.ssh` because
# tmpfiles gives up on that before getting to `/var/roothome`. # tmpfiles gives up on that before getting to `/var/roothome`.
sed -ie 's, /root, /var/roothome,' /usr/lib/tmpfiles.d/provision.conf sed -i -e 's, /root, /var/roothome,' /usr/lib/tmpfiles.d/provision.conf
# Because /var/roothome is also defined in rpm-ostree-0-integration.conf # Because /var/roothome is also defined in rpm-ostree-0-integration.conf
# we need to delete /var/roothome # we need to delete /var/roothome
sed -ie '/^d- \/var\/roothome /d' /usr/lib/tmpfiles.d/provision.conf sed -i -e '/^d- \/var\/roothome /d' /usr/lib/tmpfiles.d/provision.conf