On Oct 03, Ritesh Raj Sarraf <[email protected]> wrote:

> There was nothing mounted onto /usr/lib/modules before. Instead, all
Sure, I meant /lib/modules/ .
Do you have another UML system where you can repeat this test?

> 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'
It failed because it tried to move a mount point, which mv cannot do.

> 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. 
This is a good solution as well.

> > What is the canonical way to detect UML?
> systemd does it nicely with:
I cannot have usrmerge depend on systemd.

-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to