Hi.

On Sat, 01 Jun 2024 13:12:49 -0400 Go Canes wrote:

> On Sat, Jun 1, 2024 at 11:34 AM Patrick Dupre via users
> <users@lists.fedoraproject.org> wrote:
>> To update a system installed on a specific partition that way?
>> (after dnf update --refresh)
>> mount /dev/sdx /mnt/linux
>> chroot /mnt/linux
>> dnf system-upgrade download --releasever=40

> dnf has "--installroot=<path>".  Requires absolute path.  No idea if
> it works with system-upgrade.

I don't see this option in its man page, but since the goal if not to
upgrade the current system, but a system in a separate partition,
using system-upgrade is not needed. A simple:

  dnf --installroot /mnt/linux --releasever=40 distro-sync

is sufficient, but after, as Roger said, having mounted /proc /sys ...
under /mnt/linux.

I usually only bind mount:

  dev proc run sys tmp

to properly use a system in a separate partition with chroot.

The whole actions would thus be:

  for i in dev proc run sys tmp; do mount --bind /$i /mnt/linux/$i;done
  dnf --installroot /mnt/linux --releasever=40 distro-sync

-- 
francis
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to