View Issue Details

IDProjectCategoryView StatusLast Update
0002723Kali LinuxGeneral Bugpublic2015-11-20 17:24
Reporterxneox Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.0 
Summary0002723: custom kali live-build-config fails with P: Begin unmounting /proc... umount: /media/build-live/kali/live-build-config/chroot/pr
Description

while trying to buld a custom kali-live-build-config using the steps from:
http://docs.kali.org/development/live-build-a-custom-kali-iso
It reproduced an error described in the issue:
N: 0000270
link: https://bugs.kali.org/view.php?id=270
After following the recomended fix the process runs util the following error:
umount: /media/build-live/kali/live-build-config/chroot/proc: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...
Build of sana/default/amd64 live image failed (see build.log for details)

Build used the Vmware Vm provided by Kali-Linux 2.0 x64 (prebuild).
tryed before and after update's with the same result.

cat /etc/debian_version

Kali Linux 2.0

uname -a
Linux vm-neb01 4.0.0-kali1-amd64 0000001 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux

Build log in attach.
PS:
since the vm default hd didn't had space for the build i creaded an aditional virtual hd with 20G where the build is currelty been executed from

mount after failed build:

mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=450851,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=725588k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
tmpfs on /etc/machine-id type tmpfs (ro,relatime,size=725588k,mode=755)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/133 type tmpfs (rw,nosuid,nodev,relatime,size=362796k,mode=700,uid=133,gid=144)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=362796k,mode=700)
/dev/sdb1 on /media/build-live type ext4 (rw,relatime,data=ordered)
proc-live on /media/build-live/kali/live-build-config/chroot/proc type proc (rw,relatime)
gvfsd-fuse on /run/user/0/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)

Steps To Reproduce

mount /dev/sdb1 /media/build-live
cd /media/build-live/kali/
apt-get install curl git live-build cdebootstrap
git clone git://git.kali.org/live-build-config.git
cd live-build-config
try1:
./build.sh --distribution sana --variant i3wm --verbose
try2:
/build.sh --distribution sana --verbose

both with same results.

Attached Files
build.log (1,053,746 bytes)

Activities

rhertzog

rhertzog

2015-10-30 14:51

administrator   ~0004066

That error is transient and happens from time to time. Possibly because update-kali-menu is a background process that might not always finish in time and that uses the proc filesystem for some reason. It's not new at least and has been so ever since the start.

I should try to call update-kali-menu via a trigger instead of relying on a background process that waits until dpkg is finished...

xneox

xneox

2015-10-30 15:20

reporter   ~0004067

sorry i don't know if i understood...
i sould wait until its finished then call update-kali-menu ? is that a script or a argument of build.sh ?

rhertzog

rhertzog

2015-10-31 15:05

administrator   ~0004069

No, you have nothing to do. I was just keeping a note of something to try out to fix the issue.

You can try building multiple times (umounting the left-over /proc mount after a failed try) and it should work at some point since the error is not 100% reproducible (it happens only seldom here with the official builds).

rhertzog

rhertzog

2015-11-16 09:22

administrator   ~0004233

xneox, I have pushed some changes to live-build-config.git.

Can you try again and let me know if the problem is fixed ?

rhertzog

rhertzog

2015-11-20 17:24

administrator   ~0004257

Made further change to the hook script that must wait until update-kali-menu is over.

Issue History

Date Modified Username Field Change
2015-10-30 14:35 xneox New Issue
2015-10-30 14:35 xneox File Added: build.log
2015-10-30 14:51 rhertzog Note Added: 0004066
2015-10-30 15:20 xneox Note Added: 0004067
2015-10-31 15:05 rhertzog Note Added: 0004069
2015-11-06 23:44 bhjr Issue cloned: 0002741
2015-11-16 09:22 rhertzog Note Added: 0004233
2015-11-16 09:22 rhertzog Assigned To => rhertzog
2015-11-16 09:22 rhertzog Status new => feedback
2015-11-20 17:24 rhertzog Note Added: 0004257
2015-11-20 17:24 rhertzog Status feedback => resolved
2015-11-20 17:24 rhertzog Resolution open => fixed
2015-12-04 22:29 alexhj451 Issue cloned: 0002905