summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2019-01-03 18:40:14 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2019-01-03 18:45:19 +0000
commitde52ea17f92e13104b8bad6773105af76e6d2fdf (patch)
tree96ea63fe3b679480f4e6c0c28924fb968b371e85
parentd447e01453c65bedc3eb89c9a8a0d1f9eed583a6 (diff)
downloaddraklive-install-de52ea17f92e13104b8bad6773105af76e6d2fdf.tar
draklive-install-de52ea17f92e13104b8bad6773105af76e6d2fdf.tar.gz
draklive-install-de52ea17f92e13104b8bad6773105af76e6d2fdf.tar.bz2
draklive-install-de52ea17f92e13104b8bad6773105af76e6d2fdf.tar.xz
draklive-install-de52ea17f92e13104b8bad6773105af76e6d2fdf.zip
Create /media in the installed system (mga#24097)
We avoid copying /media from the live system to avoid copying unwanted mount points, but we want the base directory to exist in the installed system.
-rw-r--r--NEWS1
-rwxr-xr-xdraklive-install2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7d550fd..a0be9dc 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- create /media in the installed system (mga#24097)
- remove orphans after removing unwanted locales / hardware support
2.17
diff --git a/draklive-install b/draklive-install
index 319d740..58eb445 100755
--- a/draklive-install
+++ b/draklive-install
@@ -230,6 +230,8 @@ sub prepare_root {
#- create required directories and devices (early to have a consistent root before calling other programs)
my $_wait = $in->wait_message('', N("Please wait"));
fs::any::prepare_minimal_root();
+ #- /media isn't included in the minimal root, and we don't copy it to avoid copying stale mount points
+ mkdir_p("$::prefix/media");
}
sub build_copy_command {