On 2022-10-28 15:49, Tim Woodall wrote:
On Fri, 28 Oct 2022, Tim Woodall wrote:
Top post:
try installing usr-is-merged after changing sources.list before
anything else.
If that works and nobody else chimes in first I'll explain what is
going
on.
(may or may not work, no time to check now)
Tim.
To followup here:
If the docker container already has merged usr (/bin is a symlink to
/usr/bin etc) then usr-is-merged should install - it has no
dependencies.
if usr-is-merged is installed then the upgrade of base-files will not
(I
believe) pull in usrmerge and therefore you will not get the configure
error.
What I'm not sure about is whether the error you're seeing explicitly
means that usr is not merged (in which case usr-is-merged will fail to
install) or whether you get that error regardless. I don't have any
systems with usrmerge installed so I cannot quickly check the scripts
to
see.
Tim.
I tried to modify the Dockerfile :
FROM debian:stable
RUN apt update
RUN apt upgrade -y
RUN echo 'deb http://deb.debian.org/debian testing main' >
/etc/apt/sources.list
RUN apt update
RUN apt install usr-is-merged
RUN apt upgrade -y
RUN apt dist-upgrade -y
I see that :
#9 1.739 Preparing to unpack .../usr-is-merged_33_all.deb ...
#9 1.751
#9 1.751
#9 1.751
******************************************************************************
#9 1.751 *
#9 1.751 * The usr-is-merged package cannot be installed because this
system does
#9 1.751 * not have a merged /usr.
#9 1.751 *
#9 1.751 * Please install the usrmerge package to convert this system to
merged-/usr.
#9 1.751 *
#9 1.751 * For more information please read
https://wiki.debian.org/UsrMerge.
#9 1.751 *
On 2022-10-30 13:44, Michael Biebl wrote:
What you said about overlayfs is true and usrmerge is imho giving a
rather clear error message.
That said, I thought the best practice for docker containers is to
throw them away and rebuild them and that upgrading containers is
frowned upon?
If you build / pull a new bookworm docker container, it should be
setup as merged-usr from the start.
Michael
I understand but my specific problem needed to go through Bullseye then
Bookworm.
Ultimately, I found another solution.
Thank you very much to all for many tips and explanation :)
hogren