summaryrefslogtreecommitdiffstats
path: root/perl-install/install/install2.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install/install2.pm')
-rw-r--r--perl-install/install/install2.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm
index 9b600a482..32a60279e 100644
--- a/perl-install/install/install2.pm
+++ b/perl-install/install/install2.pm
@@ -395,6 +395,24 @@ sub main {
eval { fs::mount::mount('none', '/sys', 'sysfs', 1) };
eval { touch('/root/non-chrooted-marker.DrakX') }; #- helps distinguishing /root and /mnt/root when we don't know if we are chrooted
+ # Ensure /run is mounted
+ mkdir "/run", 0755;
+ run_program::run("mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run");
+ mkdir "/run/udev", 0755;
+ mkdir "/run/udev/rules.d", 0755;
+ $ENV{UDEVRULESD} = "/run/udev/rules.d";
+
+ # Start up udev and trigger cold plugs
+ run_program::run("mount", "-t", "devtmpfs", "-o", "mode=0755,nosuid", "devtmpfs", "/dev");
+ mkdir "/dev/pts", 0755;
+ run_program::run("mount", "-t", "devpts", "-o", "gid=5,mode=620,noexec,nosuid", "devpts", "/dev/pts");
+ mkdir "/dev/shm", 0755;
+ run_program::run("mount", "-t", "tmpfs", "-o", "mode=1777,nosuid,nodev", "tmpfs", "/dev/shm");
+
+ run_program::run("/lib/udev/udevd", "--daemon", "--resolve-names=never");
+ run_program::run("udevadm", "trigger", "--type=subsystems", "--action=add");
+ run_program::run("udevadm", "trigger", "--type=devices", "--action=add");
+
if ($::local_install) {
push @::auto_steps,
# 'selectLanguage', 'selectKeyboard', 'miscellaneous', 'selectInstallClass',