{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/kiwi/issues/501","labels_url":"https://api.github.com/repos/openSUSE/kiwi/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/kiwi/issues/501/comments","events_url":"https://api.github.com/repos/openSUSE/kiwi/issues/501/events","html_url":"https://github.com/openSUSE/kiwi/issues/501","id":109283097,"number":501,"title":"baseCleanMount does not unmount all filesystems","user":{"login":"vinyanalista","id":1576506,"avatar_url":"https://avatars.githubusercontent.com/u/1576506?v=3","gravatar_id":"","url":"https://api.github.com/users/vinyanalista","html_url":"https://github.com/vinyanalista","followers_url":"https://api.github.com/users/vinyanalista/followers","following_url":"https://api.github.com/users/vinyanalista/following{/other_user}","gists_url":"https://api.github.com/users/vinyanalista/gists{/gist_id}","starred_url":"https://api.github.com/users/vinyanalista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinyanalista/subscriptions","organizations_url":"https://api.github.com/users/vinyanalista/orgs","repos_url":"https://api.github.com/users/vinyanalista/repos","events_url":"https://api.github.com/users/vinyanalista/events{/privacy}","received_events_url":"https://api.github.com/users/vinyanalista/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-01T11:42:27Z","updated_at":"2015-11-16T14:30:13Z","closed_at":null,"body":"I was trying to build an appliance with the following KIWI configuration:\r\n\r\nhttps://github.com/kamarada/kiwi-config-Kamarada/tree/f3f46ac736e4af181ffc20cf80178da9acb53347\r\n\r\nIt is an openSUSE 42.1 LiveDVD with KDE, using as starting point the template `livecd-kde` found in the package [kiwi-config-openSUSE](https://software.opensuse.org/package/kiwi-config-openSUSE) for openSUSE 13.2 and the SUSE Studio great `create_appliance.sh`.\r\n\r\nTo build it, I was using a VirtualBox virtual machine with openSUSE 42.1 Milestone 1 for 64 bit PC, installed from Network, and [KIWI v7.03.23](https://github.com/openSUSE/kiwi/tree/v7.03.23), cloned from GitHub. KIWI configuration files were located at `/hd/kiwi-config-Kamarada/` (I needed to add another HD to my virtual machine, because the default HD of 8 GB went out of space).\r\n\r\nMy `config.sh` file follows the example in `man KIWI::config.sh`:\r\n\r\n```sh\r\n#======================================\r\n# Functions...\r\n#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\r\ntest −f /.kconfig && . /.kconfig\r\ntest −f /.profile && . /.profile\r\n\r\n#======================================\r\n# Greeting...\r\n#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\r\necho \"Configure image: [$kiwi_iname]...\"\r\n\r\n#======================================\r\n# Mount system filesystems\r\n#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\r\nbaseMount\r\n\r\n#======================================\r\n# Call configuration code/functions\r\n#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\r\n...\r\n\r\n#======================================\r\n# Umount kernel filesystems\r\n#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\r\nbaseCleanMount\r\n\r\n#======================================\r\n# Exit safely\r\n#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\r\nexit 0\r\n```\r\n\r\nBut it was always returning the same error when it was ran during the prepare step:\r\n\r\n```\r\nUmount of /hd/kiwi-config-Kamarada/image/build/image-root/sys failed: umount: /hd/kiwi-config-Kamarada/image/build/image-root/sys: target is busy\r\n        (In some cases useful info about processes that\r\n         use the device is found by lsof(8) or fuser(1).)\r\n```\r\n\r\nIn order to at least complete the prepare step, I replaced `baseCleanMount` by `baseCleanMount || true`. Then, `config.sh` exited successfully, although ignoring that error. The create step, then, failed just at the beginning, showing me the following error message:\r\n\r\n```\r\nIt appears there are processes which are holding onto mounts created by a previous run\r\n\r\n...\r\n\r\nThis could cause kiwi to fail, or even worse, if you are building on tmpfs, it could totally freeze or crash your machine. Please first clean up these old mounts, or export 'KIWI_IGNORE_OLD_MOUNTS=yes' and re-run \r\nClosing session with ecode: 1\r\nKIWI exited with error(s)\r\nComplete logfile at: /hd/kiwi-config-Kamarada/image/build/image-root.log\r\n```\r\n\r\nI ran `export KIWI_IGNORE_OLD_MOUNTS=yes` and then `kiwi --create` and it built the appliance successfully. Now I'm going to test if the appliance has any configuration mistakes on my part, but it seems like KIWI has done its job. The appliance successfully booted and showed the KDE Plasma desktop with the SUSEgreeter screen.\r\n\r\nI reproduced the same sequence of errors using another VirtualBox virtual machine with openSUSE 42.1 Beta 1 for 64 bit PC, installed from Network, and [KIWI v7.03.25](https://github.com/openSUSE/kiwi/tree/v7.03.25), cloned from GitHub.\r\n\r\nAm I doing something wrong, or is this a KIWI bug?"},"comment":{"url":"https://api.github.com/repos/openSUSE/kiwi/issues/comments/157048369","html_url":"https://github.com/openSUSE/kiwi/issues/501#issuecomment-157048369","issue_url":"https://api.github.com/repos/openSUSE/kiwi/issues/501","id":157048369,"user":{"login":"schaefi","id":912234,"avatar_url":"https://avatars.githubusercontent.com/u/912234?v=3","gravatar_id":"","url":"https://api.github.com/users/schaefi","html_url":"https://github.com/schaefi","followers_url":"https://api.github.com/users/schaefi/followers","following_url":"https://api.github.com/users/schaefi/following{/other_user}","gists_url":"https://api.github.com/users/schaefi/gists{/gist_id}","starred_url":"https://api.github.com/users/schaefi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schaefi/subscriptions","organizations_url":"https://api.github.com/users/schaefi/orgs","repos_url":"https://api.github.com/users/schaefi/repos","events_url":"https://api.github.com/users/schaefi/events{/privacy}","received_events_url":"https://api.github.com/users/schaefi/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T14:30:13Z","updated_at":"2015-11-16T14:30:13Z","body":"Hmm, I think this \"mount\" check in kiwi is simply wrong\r\n\r\nI'll investigate a little more, but I think we should remove this. I found that every build running in a separate instance, e.g a container or a VM causes this check to send the alarm... not nice"}}