diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-01 22:11:12 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-01 22:11:12 +0000 |
commit | 4d3cb848ef159850ae8f603c83b8c63be755bf58 (patch) | |
tree | 7efa8657122ace9d2ff146918ecf4b086628ee8f | |
parent | d5c967baaa7649df3ab57bfc953ce99809d9198e (diff) | |
download | iurt-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.pm | 8 |
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 |