Mailinglist Archive: opensuse-buildservice (120 mails)
| < Previous | Next > |
[opensuse-buildservice] [PATCH] cleanup stale loop devices left by kiwi
- From: Dinar Valeev <dinarv@xxxxxxxxx>
- Date: Tue, 26 Jul 2011 12:12:47 +0200
- Message-id: <CADqALGQyVVHyp8Kcit3C-CAU0mDF5nBEzcU+j11FjK_RaYh4UA@mail.gmail.com>
When worker or osc builds kiwi images in a chroot environment, for
some reason there stale loop devices left.
Which makes impossible later just delete buildroot. Architectures
seems to be affected at least are x86_64,ppc.
Maybe that patch is just workaround, but I cannot reproduce that issue
with pure kiwi.
From 1f7acbe6b5190701ccdeccfc749583efc9383a6a Mon Sep 17 00:00:00 2001
From: Dinar Valeev <dvaleev@xxxxxxx>
Date: Tue, 26 Jul 2011 12:00:11 +0200
Subject: [PATCH] cleanup stale loop devices left by kiwi
---
init_buildsystem | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/init_buildsystem b/init_buildsystem
index 35f9501..9de6563 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -111,6 +111,9 @@ clean_build_root()
umount -n $BUILD_ROOT/proc 2> /dev/null || true
umount -n $BUILD_ROOT/dev/pts 2> /dev/null || true
umount -n $BUILD_ROOT/mnt 2> /dev/null || true
+ for loop in `losetup -a | grep "/usr/src/packages"|awk -F ":"
'{print $1}'`;
+ do losetup -d $loop
+ done
rm -rf -- $BUILD_ROOT/*
rm -rf -- $BUILD_ROOT/.build
rm -rf -- $BUILD_ROOT/.root
--
1.6.0.2
some reason there stale loop devices left.
Which makes impossible later just delete buildroot. Architectures
seems to be affected at least are x86_64,ppc.
Maybe that patch is just workaround, but I cannot reproduce that issue
with pure kiwi.
From 1f7acbe6b5190701ccdeccfc749583efc9383a6a Mon Sep 17 00:00:00 2001
From: Dinar Valeev <dvaleev@xxxxxxx>
Date: Tue, 26 Jul 2011 12:00:11 +0200
Subject: [PATCH] cleanup stale loop devices left by kiwi
---
init_buildsystem | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/init_buildsystem b/init_buildsystem
index 35f9501..9de6563 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -111,6 +111,9 @@ clean_build_root()
umount -n $BUILD_ROOT/proc 2> /dev/null || true
umount -n $BUILD_ROOT/dev/pts 2> /dev/null || true
umount -n $BUILD_ROOT/mnt 2> /dev/null || true
+ for loop in `losetup -a | grep "/usr/src/packages"|awk -F ":"
'{print $1}'`;
+ do losetup -d $loop
+ done
rm -rf -- $BUILD_ROOT/*
rm -rf -- $BUILD_ROOT/.build
rm -rf -- $BUILD_ROOT/.root
--
1.6.0.2
| < Previous | Next > |