Hello,
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
Thanks
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com ===========================================================================
On Sat, 1 Jun 2024 17:33:19 +0200 Patrick Dupre via users wrote:
Hello,
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
I wouldn't trust it. I'll often use chroot to download updates, but to actually run them there are too many things I imagine need a "real" system to apply the updates. All the stuff from /proc and /sys that some updates might need aren't going to be there in a chroot for one example.
you need to add these mounts to allow full function under a rescue boot+mnt+chroot.
mount -o bind /proc /mnt/linux/proc mount -o bind /sys /mnt/linux/sys mount -o bind /dev /mnt/linux/dev mount -o bind /dev/pts /mnt/linux/dev/pts
Typed from memory. I have done way too many live cd rescue boots.
On Sat, Jun 1, 2024 at 10:56 AM Tom Horsley horsley1953@gmail.com wrote:
On Sat, 1 Jun 2024 17:33:19 +0200 Patrick Dupre via users wrote:
Hello,
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
I wouldn't trust it. I'll often use chroot to download updates, but to actually run them there are too many things I imagine need a "real" system to apply the updates. All the stuff from /proc and /sys that some updates might need aren't going to be there in a chroot for one example. -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
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.
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
On Sat, Jun 1, 2024 at 2:02 PM Francis.Montagnac@inria.fr wrote:
On Sat, 01 Jun 2024 13:12:49 -0400 Go Canes wrote:
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:
I found the option in the dnf man page - not sure why you don't see it?
$ man dnf | grep -- --installroot --installroot=<path> [...]
On Sat, 01 Jun 2024 14:16:41 -0400 Go Canes wrote:
On Sat, Jun 1, 2024 at 2:02 PM Francis.Montagnac@inria.fr wrote:
On Sat, 01 Jun 2024 13:12:49 -0400 Go Canes wrote:
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:
I found the option in the dnf man page - not sure why you don't see it?
Sorry, I was unclear: I talked of the man page of dnf-system-upgrade.
On Sat, 01 Jun 2024 20:02:09 +0200 Francis.Montagnac@inria.fr wrote:
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?
mount /dev/sdx /mnt/linux
Beware, you may also have to mount some other partitions as for example /mnt/linux/boot or /mnt/linux/boot/efi.
Check /mnt/linux/etc/fstab.
Currently I am hesitating to do chroot
The point is the following running grub2-mkconfig I get Found Fedora Linux 38 (Thirty Eight) on /dev/sdc4
but efibootmgr does not the distribution and grub2 does not show it In addition at boot EFI does not offer me the option to boot to this sdc4 partition
On Sat, 01 Jun 2024 20:02:09 +0200 Francis.Montagnac@inria.fr wrote:
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?
mount /dev/sdx /mnt/linux
Beware, you may also have to mount some other partitions as for example /mnt/linux/boot or /mnt/linux/boot/efi.
Check /mnt/linux/etc/fstab.
-- francis -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
Should I run grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg and not grub2-mkconfig -o /boot/grub2/grub.cfg. ?
To: users@lists.fedoraproject.org Cc: "Community support for Fedora users" users@lists.fedoraproject.org, "Patrick Dupre" pdupre@gmx.com Subject: Re: chroot
Currently I am hesitating to do chroot
The point is the following running grub2-mkconfig I get Found Fedora Linux 38 (Thirty Eight) on /dev/sdc4
but efibootmgr does not the distribution and grub2 does not show it In addition at boot EFI does not offer me the option to boot to this sdc4 partition
On Sat, 01 Jun 2024 20:02:09 +0200 Francis.Montagnac@inria.fr wrote:
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?
mount /dev/sdx /mnt/linux
Beware, you may also have to mount some other partitions as for example /mnt/linux/boot or /mnt/linux/boot/efi.
Check /mnt/linux/etc/fstab.
-- francis -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
-- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
On Sat, 01 Jun 2024 20:35:35 +0200 Patrick Dupre via users wrote:
Should I run grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg and not grub2-mkconfig -o /boot/grub2/grub.cfg. ?
No: since a few fedora versions, /boot/efi/EFI/fedora/grub.cfg simply redirect to /boot/grub2/grub.cfg.
Can you describe what disk/partitions you have ?
I guess you have two disks, each with a system and an EFI partition
On Sat, 01 Jun 2024 20:35:35 +0200 Patrick Dupre via users wrote:
Should I run grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg and not grub2-mkconfig -o /boot/grub2/grub.cfg. ?
No: since a few fedora versions, /boot/efi/EFI/fedora/grub.cfg simply redirect to /boot/grub2/grub.cfg.
This I do not understand On the installation which provides troubles (I can only boot through super grub) I have /dev/sdc3 23800324 15253780 7313160 68% / /dev/sdc2 432924 282442 123500 70% /boot
os-prober does not see /dev/sdc3 but in /boot/grub2/grub.cfg I have see set root='hd2,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 da1fb213-c138-4711-aba2-76a598506283
which is the installation on sdc3 There is no /boot/efi/EFI/fedora/grub.cfg If I umount /boot and mount /dev/sda3 /boot/efi (sda3 is recognized as a EFI System Partition) sdc3 does not show up in /boot/efi/EFI/fedora/grub.cfg
This seems to indicate that I need to make
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
grub-customize does not show my fedora 40 installed on sdc3 either
Can you describe what disk/partitions you have ?
I guess you have two disks, each with a system and an EFI partition
-- francis
Patrick Dupre via users writes:
Hello,
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
A bunch of other stuff will likely need to be mounted.
Pretty much anything needs /dev, /sys, etc… that needs to be mounted in your chroot.