From 1a8f5462657b8ed7d392fec4af38ed8035fd3182 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 5 Mar 2015 21:42:38 +0100 Subject: (create_initial_devices) kill it (no more needed for draklive) --- tools/drakx-in-chroot | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tools') diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot index d5c10a088..02cf53ce4 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -89,8 +89,6 @@ 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"); @@ -209,10 +207,6 @@ 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 ($b_umount_dev_too) = @_; my $err; -- cgit v1.2.1