Closed dimkr closed 9 months ago
But that leaves no bash in usr/bin. Is that supposed to be OK?
This depends on USR_SYMLINKS
- if yes
, this doesn't matter because /bin and /usr/bin have the same contents.
Otherwise, line 17 takes care of this.
I will try a NoblePup32 usrmerge build with: if [ -f usr/bin/bash -a ! -e bin/bash -a ! -L bin/bash ] ; then
and report
Results from test build:
the rootfs-complete is not viable when first constructed - usrmerge rootfs-complete 1 must be run to allow the build to continue
Makes sense, it needs to run immediately after of copying of packages into rootfs-complete. Then, the busybox symlink issue doesn't matter because /bin and /usr/bin have the same contents.
3builddistro changes??:
insert before line 472: [ "$USR_SYMLINKS" = "yes" ] && usrmerge sandbox3/rootfs-complete 1
delete line 1096
jammy:
noble:
The package template breaks bash because it replaces /usr/bin/bash with a symlink to /bin/bash, so it's a broken symlink or a recursive symlink (depending on whether or not /bin is a symlink to /usr/bin).