Hello Marco,

On Mon, 2022-10-03 at 16:09 +0200, Marco d'Itri wrote:
> On Oct 03, Ritesh Raj Sarraf <r...@debian.org> wrote:
> 
> > Now, going forward, I can manually fix it by mounting to
> > /usr/lib/modules and arranging the symlink to the old location in
> > the
> > guest, something that usrmerge is trying to do.
> Actually I think that it is much easier:
> - unmount /usr/lib/modules
> - complete the installation of usrmerge
> - reboot
> 
> Can you confirm that after doing this everything will work as
> expected?
> 

There was nothing mounted onto /usr/lib/modules before. Instead, all
this time it was mounted on /lib/modules/ just like on the host. I
think it failed because usrmerge script was invoking mv command while
/lib/modules was independently mounted 'read-only'

After facing this error, I switched the fstab to /usr/lib/modules and
rebooted. I first rebooted because unmounting /lib/modules was not
possible as it was held by the linux process.

After the reboot, re-running the usrmerge script worked proper. 

> What is the canonical way to detect UML?

systemd does it nicely with:

root@uml:~# systemd-detect-virt 
uml
root@uml:~# 

> I am not sure if we want to unmount/remount stuff, but at least (and
> at 
> least as a first step) the conversion program can bail out gracefully
> and explain what to do.

Yes. Some careful instructions targeting novice users. I was able to
quickly work it out but something simple for general users would be
nice.


-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to