summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/any.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-06 03:21:55 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-06 03:21:55 +0000
commit56056e359705b9746cd08db8fd6ce90df6b5b6bf (patch)
tree034f9de01f8e8d60de8be97e967c24274fd175f8 /perl-install/fs/any.pm
parentc8f020bf9d3cf293f4302830bed2a6fc6a110153 (diff)
downloaddrakx-56056e359705b9746cd08db8fd6ce90df6b5b6bf.tar
drakx-56056e359705b9746cd08db8fd6ce90df6b5b6bf.tar.gz
drakx-56056e359705b9746cd08db8fd6ce90df6b5b6bf.tar.bz2
drakx-56056e359705b9746cd08db8fd6ce90df6b5b6bf.tar.xz
drakx-56056e359705b9746cd08db8fd6ce90df6b5b6bf.zip
bind mount /run in chroot, thus fixing dracut runs (Dave Hodgins, mga#9213)
Diffstat (limited to 'perl-install/fs/any.pm')
-rw-r--r--perl-install/fs/any.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm
index bba86ecd2..5e7f34ec5 100644
--- a/perl-install/fs/any.pm
+++ b/perl-install/fs/any.pm
@@ -82,7 +82,7 @@ sub create_minimal_files() {
qw(dev etc etc/profile.d etc/rpm etc/sysconfig etc/sysconfig/console
etc/sysconfig/network-scripts etc/sysconfig/console/consolefonts
etc/sysconfig/console/consoletrans
- home mnt tmp var var/tmp var/lib var/lib/rpm var/lib/urpmi);
+ home mnt run tmp var var/tmp var/lib var/lib/rpm var/lib/urpmi);
mkdir "$::prefix/$_", 0700 foreach qw(root root/tmp root/drakx);
devices::make("$::prefix/dev/null");
@@ -94,6 +94,7 @@ sub prepare_minimal_root() {
fs::any::create_minimal_files();
run_program::run('mount', '--bind', '/dev', "$::prefix/dev");
+ run_program::run('mount', '--bind', '/run', "$::prefix/run");
eval { fs::mount::mount('none', "$::prefix/proc", 'proc') };
eval { fs::mount::mount('none', "$::prefix/sys", 'sysfs') };
eval { fs::mount::sys_kernel_debug($::prefix) };