Thanks for that initial investigation.

To clarify, the root cause of the failure is that with uutils, `cat` and
`true` hardlink to the same inode. Thus, with the `start-stop-daemon`
symlink to `true`, `cat > start-stop-daemon` effectively tries to write
onto itself, and obviously fails with `Text file busy`.

Now here is what I found from there:
* The `ln -fs /bin/true chroot/usr/sbin/start-stop-daemon` comes from a 
supposedly temporary patch `0001-duplicate-aliased-diversions-for-DEP17.patch` 
introduced due to some `/bin` `/usr/bin` shenanigans.
* The patch came from a Debian bug 
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064408) and applied 
originally on a more modern version of the file.
* The backport to Ubuntu overlooked that the method for "faking" 
`start-stop-daemon` changed, and now the resulting file tries to do it twice: 
once with the symlink to `true`, and a second time with the `cat`.
* The funny thing is that before the recent coreutils-from update, the original 
`/bin/true` ended up being replaced by a shell script 🙃

I've opened an MP to fix this here:
https://code.launchpad.net/~skia/ubuntu/+source/live-build/+git/live-
build/+merge/507790

** Bug watch added: Debian Bug tracker #1064408
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064408

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2158962

Title:
  Failing to build images: chroot/sbin/start-stop-daemon: Text file busy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2158962/+subscriptions


-- 
kubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to