aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-01 22:11:12 +0000
committerOlivier Blin <blino@mageia.org>2010-11-01 22:11:12 +0000
commit4d3cb848ef159850ae8f603c83b8c63be755bf58 (patch)
tree7efa8657122ace9d2ff146918ecf4b086628ee8f
parentd5c967baaa7649df3ab57bfc953ce99809d9198e (diff)
downloadiurt-4d3cb848ef159850ae8f603c83b8c63be755bf58.tar
iurt-4d3cb848ef159850ae8f603c83b8c63be755bf58.tar.gz
iurt-4d3cb848ef159850ae8f603c83b8c63be755bf58.tar.bz2
iurt-4d3cb848ef159850ae8f603c83b8c63be755bf58.tar.xz
iurt-4d3cb848ef159850ae8f603c83b8c63be755bf58.zip
remove old code creating /etc/mtab and /dev/null, everything is created fine by basesystem now
-rw-r--r--lib/Iurt/Chroot.pm8
1 files changed, 0 insertions, 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