From 4d3cb848ef159850ae8f603c83b8c63be755bf58 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 1 Nov 2010 22:11:12 +0000 Subject: remove old code creating /etc/mtab and /dev/null, everything is created fine by basesystem now --- lib/Iurt/Chroot.pm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 82df2b0..c626dbc 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -510,14 +510,6 @@ sub build_chroot { "$tmp_chroot/etc/sysconfig", "$tmp_chroot/proc", "$tmp_chroot/var/lib/rpm"); - # create empty files - foreach ('/etc/mtab') { - system($sudo, 'touch', "$tmp_chroot$_"); - } - - system($sudo, 'mknod', "$tmp_chroot/dev/null", 'c', 1, 3); - system("$sudo chmod a+rw $tmp_chroot/dev/null"); - #system(qq($sudo sh -c "echo 127.0.0.1 localhost > $tmp_chroot/etc/hosts")); # warly some program perform a gethostbyname(hostname) and in the cluster the # name are not resolved via DNS but via /etc/hosts -- cgit v1.2.1