Re: chroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux