summaryrefslogtreecommitdiffstats
path: root/tools/drakx-in-chroot
diff options
context:
space:
mode:
Diffstat (limited to 'tools/drakx-in-chroot')
-rwxr-xr-xtools/drakx-in-chroot6
1 files changed, 6 insertions, 0 deletions
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();