summaryrefslogtreecommitdiffstats
path: root/tools/drakx-in-chroot
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-12-20 05:56:42 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-12-20 16:54:17 +0100
commit32ca88d8bb188660c34c241ce747c690746c1321 (patch)
tree89c5a7b077e56bd62b14c251e07650242909dd7f /tools/drakx-in-chroot
parentd44f1c4cf81df2a1e080f69aa1de9e9b2a847d60 (diff)
downloaddrakx-32ca88d8bb188660c34c241ce747c690746c1321.tar
drakx-32ca88d8bb188660c34c241ce747c690746c1321.tar.gz
drakx-32ca88d8bb188660c34c241ce747c690746c1321.tar.bz2
drakx-32ca88d8bb188660c34c241ce747c690746c1321.tar.xz
drakx-32ca88d8bb188660c34c241ce747c690746c1321.zip
pre-create /dev/null & co before mounting devtmpfs
Diffstat (limited to 'tools/drakx-in-chroot')
-rwxr-xr-xtools/drakx-in-chroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index e7c0d23f8..312c5abfd 100755
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -89,6 +89,8 @@ mount($dir, "$SLASH_LOCATION$prefix_ROOTED", "-o bind");
$repository_uri ||= $repository_without_arch if !$remote_repository;
mount($repository_uri, "$SLASH_LOCATION$MEDIA_LOCATION_ROOTED", "-o bind") if $repository_uri;
+# for draklive:
+create_initial_devices();
mount('/dev', "$SLASH_LOCATION/dev", " --bind -o ro");
mount('none', "$SLASH_LOCATION/proc", "-t proc");
mount('none', "$SLASH_LOCATION/sys", "-t sysfs");
@@ -114,8 +116,6 @@ if ($disk_iso_repository) {
symlinkf('media' . $repository_arch, "$SLASH_LOCATION$IMAGE_LOCATION_ROOTED");
create_initial_symlinks();
-# for draklive:
-create_initial_devices();
apply_stage2_updates();