tier-0: fix sed invocation
Classic sed invocation footgun. Doing `-ie` actually binds the `e` to `-i` which tells sed to backup the original with a suffix of `e`. This gets rid of `/usr/lib/tmpfiles.d/provision.confe`. systemd-tmpfiles ignores files that don't have `.conf` so the stray file had no effect.
This commit is contained in:
parent
243b2c03bc
commit
cbd531bc53
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue