summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2019-03-17 14:05:43 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2019-03-17 14:14:56 +0000
commitc77e23e522998f725952da34b214ccea3c1a10d5 (patch)
treed716eec9bf9dde07a8f0bc73ac503fe2fb5a55a0
parent3d2aae54d5df4831e88b386275bf62aac368b8a0 (diff)
downloaddrakiso-c77e23e522998f725952da34b214ccea3c1a10d5.tar
drakiso-c77e23e522998f725952da34b214ccea3c1a10d5.tar.gz
drakiso-c77e23e522998f725952da34b214ccea3c1a10d5.tar.bz2
drakiso-c77e23e522998f725952da34b214ccea3c1a10d5.tar.xz
drakiso-c77e23e522998f725952da34b214ccea3c1a10d5.zip
Fix ownership of dummy root directory (mga#24501)
systemd 240 introduces a new requirement that the root directory must be owned by root.
-rw-r--r--NEWS2
-rw-r--r--lib/MGA/DrakISO/BuildRoot.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 761a0ef..4b416c7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix ownership of dummy root directory (mga#24501)
+
1.10
- support generation of sha3-512 checksum
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm
index fe248ba..b4078d9 100644
--- a/lib/MGA/DrakISO/BuildRoot.pm
+++ b/lib/MGA/DrakISO/BuildRoot.pm
@@ -76,6 +76,7 @@ sub install_live_system {
run_as_root('rm', '-rf', $live_root);
}
mkdir_p($live_root);
+ run_as_root('chown', 'root.root', $live_root);
my $Xserver_pid;
my $error_message;