summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-10-26 08:59:13 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-10-26 09:00:27 +0100
commite9d30f33a0edb88a819c67cfc14ed5ce66312ceb (patch)
tree0f01b975bd5240f3c2856d05d4c25e3c71e40fd2
parentd978a9c47dc5644b9357695c202d60eb1925ea38 (diff)
downloaddrakx-e9d30f33a0edb88a819c67cfc14ed5ce66312ceb.tar
drakx-e9d30f33a0edb88a819c67cfc14ed5ce66312ceb.tar.gz
drakx-e9d30f33a0edb88a819c67cfc14ed5ce66312ceb.tar.bz2
drakx-e9d30f33a0edb88a819c67cfc14ed5ce66312ceb.tar.xz
drakx-e9d30f33a0edb88a819c67cfc14ed5ce66312ceb.zip
pre-create /dev/null & co again (for draklive)
partially reverting commit 1a213f9497330c3173500e4e27d0e21a694beba4 add a comment explaining the purpose
-rw-r--r--perl-install/install/NEWS3
-rwxr-xr-xtools/drakx-in-chroot6
2 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index b783c0143..5ff5595fc 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,6 @@
+- drakx-in-chroot:
+ o pre-create /dev/null & co again (for draklive)
+
Version 16.44 - 23 October 2014
- drakx-in-chroot:
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index dbc319052..e7c0d23f8 100755
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -114,6 +114,8 @@ if ($disk_iso_repository) {
symlinkf('media' . $repository_arch, "$SLASH_LOCATION$IMAGE_LOCATION_ROOTED");
create_initial_symlinks();
+# for draklive:
+create_initial_devices();
apply_stage2_updates();
@@ -207,6 +209,10 @@ sub mount {
sys("$sudo mount $from $mntpt " . join(' ', @opts));
}
+sub create_initial_devices() {
+ sys("$sudo cp -a /dev/{mem,null,random,urandom,tty} $SLASH_LOCATION/dev");
+}
+
sub umount_all() {
my $err;
clean_stage2_updates();