aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-03 17:29:37 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-03 17:29:37 +0000
commite8ddfa8c44dd59e19711e8ab02788d6163215ba6 (patch)
tree29265323812273a7674dd2c3168e6c4935428adf
parent060533c496ce06393f8b83c3aa398bd2c191a8aa (diff)
downloadiurt-e8ddfa8c44dd59e19711e8ab02788d6163215ba6.tar
iurt-e8ddfa8c44dd59e19711e8ab02788d6163215ba6.tar.gz
iurt-e8ddfa8c44dd59e19711e8ab02788d6163215ba6.tar.bz2
iurt-e8ddfa8c44dd59e19711e8ab02788d6163215ba6.tar.xz
iurt-e8ddfa8c44dd59e19711e8ab02788d6163215ba6.zip
(clean_and_build_chroot) failing to mount /dev/pts is not a fatal error
-rw-r--r--NEWS1
-rw-r--r--lib/Iurt/Chroot.pm5
2 files changed, 2 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 2e064fc..4eb4420 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
0.6.9 (unreleased)
+- failing to mount /dev/pts is not a fatal error
0.6.8
- fix import loop
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index c1a76cc..67f93ff 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -89,10 +89,7 @@ sub clean_and_build_chroot {
return;
}
if (system("$sudo mount none -t tmpfs $chroot/dev/shm")) {
- plog('ERROR', "Failed to mount /dev/shm");
- sudo($config, "--umount", "$chroot/proc");
- sudo($config, "--umount", "$chroot/dev/pts");
- return;
+ plog('WARNING', "Failed to mount /dev/shm");
}
if ($run->{icecream}) {
system("$sudo mkdir -p $chroot/var/cache/icecream");