From 32ca88d8bb188660c34c241ce747c690746c1321 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 20 Dec 2014 05:56:42 +0100 Subject: pre-create /dev/null & co before mounting devtmpfs --- tools/drakx-in-chroot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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(); -- cgit v1.2.1