Re: chroot

2024-06-02 Thread Patrick Dupre via users
> > 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/g

Re: chroot

2024-06-01 Thread Sam Varshavchik
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 anythi

Re: chroot

2024-06-01 Thread Francis . Montagnac
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 y

Re: chroot

2024-06-01 Thread Patrick Dupre via users
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" , > "Patrick Dupre" > Subject: Re: chroot > > Currently I am hes

Re: chroot

2024-06-01 Thread Francis . Montagnac
On Sat, 01 Jun 2024 14:16:41 -0400 Go Canes wrote: > On Sat, Jun 1, 2024 at 2:02 PM wrote: >> On Sat, 01 Jun 2024 13:12:49 -0400 Go Canes wrote: >> > dnf has "--installroot=". Requires absolute path. No idea if >> > it works with system-upgrade. >> I don't see this option in its man page, but

Re: chroot

2024-06-01 Thread Patrick Dupre via users
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 partiti

Re: chroot

2024-06-01 Thread Francis . Montagnac
On Sat, 01 Jun 2024 20:02:09 +0200 francis.montag...@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 >> wrote: >>> To update a system installed on a specific partition that way? >>> mount /dev/sdx /mnt/linux Beware,

Re: chroot

2024-06-01 Thread Go Canes
On Sat, Jun 1, 2024 at 2:02 PM wrote: > On Sat, 01 Jun 2024 13:12:49 -0400 Go Canes wrote: > > dnf has "--installroot=". 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, b

Re: chroot

2024-06-01 Thread Francis . Montagnac
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 > 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 down

Re: chroot

2024-06-01 Thread Go Canes
On Sat, Jun 1, 2024 at 11:34 AM Patrick Dupre via users 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=". Requires absolute

Re: chroot

2024-06-01 Thread Roger Heflin
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.

Re: chroot

2024-06-01 Thread Tom Horsley
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 ofte

Re: chroot

2018-07-27 Thread Tom Horsley
On Fri, 27 Jul 2018 13:20:34 +0200 Patrick Dupre wrote: > Why I cannot make a chroot? Because chroot only does the one disk, but a operational system requires stuff like /dev and /proc. Here's the critical bits of the chroot script I use to make a chroot functional: mount --bind /dev $newroo

Re: chroot

2016-07-17 Thread Mike Wright
On 07/17/2016 07:23 AM, Tom H wrote: but you'd be better off using systemd-nspawn -D /path/to/chroot_dir Good contribution Tom. I'd never heard of it before. Very powerful. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedo

Re: chroot

2016-07-17 Thread Patrick Dupre
ue, France === > Sent: Sunday, July 17, 2016 at 4:23 PM > From: "Tom H" > To: "Fedora Users" > Subject: Re: chroot > > On Sun, Jul 17, 2016 at 9:55 AM, Patrick Dupre wrote: > > > > I wanted to make a chroot, and I get: > > > > Error, do t

Re: chroot

2016-07-17 Thread Tom H
On Sun, Jul 17, 2016 at 9:55 AM, Patrick Dupre wrote: > > I wanted to make a chroot, and I get: > > Error, do this: mount -t proc proc /proc > /bin/basename: missing operand > Try '/bin/basename --help' for more information. Not enough info. What's calling basename? The proc mount should be mou

Re: chroot question

2015-04-22 Thread jd1008
On 04/22/2015 12:58 AM, Cameron Simpson wrote: On 21Apr2015 20:47, jd1008 wrote: Now that chroot works, I am having a problem with running gui apps. For example running firefox, I get (process:10281): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed (firefox:10281

Re: chroot question

2015-04-21 Thread Cameron Simpson
On 21Apr2015 20:47, jd1008 wrote: Now that chroot works, I am having a problem with running gui apps. For example running firefox, I get (process:10281): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed (firefox:10281): GnomeUI-WARNING **: While connecting to sessio

Re: chroot question

2015-04-21 Thread jd1008
On 04/21/2015 04:51 PM, Cameron Simpson wrote: On 21Apr2015 15:34, jd1008 wrote: As root, I ran chroot --userspec=user2:user2 /home/user2 chroot: failed to run command ‘/bin/bash’: Permission denied The dir /home/user2 has in it all the *bin and *lib (links) and usr/*bin and usr/*lib files

Re: chroot question

2015-04-21 Thread jd1008
On 04/21/2015 04:51 PM, Cameron Simpson wrote: On 21Apr2015 15:34, jd1008 wrote: As root, I ran chroot --userspec=user2:user2 /home/user2 chroot: failed to run command ‘/bin/bash’: Permission denied The dir /home/user2 has in it all the *bin and *lib (links) and usr/*bin and usr/*lib files

Re: chroot question

2015-04-21 Thread jd1008
On 04/21/2015 04:51 PM, Cameron Simpson wrote: On 21Apr2015 15:34, jd1008 wrote: As root, I ran chroot --userspec=user2:user2 /home/user2 chroot: failed to run command ‘/bin/bash’: Permission denied The dir /home/user2 has in it all the *bin and *lib (links) and usr/*bin and usr/*lib files

Re: chroot question

2015-04-21 Thread Cameron Simpson
On 21Apr2015 15:34, jd1008 wrote: As root, I ran chroot --userspec=user2:user2 /home/user2 chroot: failed to run command ‘/bin/bash’: Permission denied The dir /home/user2 has in it all the *bin and *lib (links) and usr/*bin and usr/*lib files and subdirs. So, what is chroot good for??? Hmm

Re: CHROOT for SSH

2011-01-06 Thread Luc MAIGNAN
Yes you're right kevin, it's a very good solution. But to use it, I have to put a lot of things in the home directory (bash, tty, ...) with a lot a different rights. Is there a document which lists the 'minimal' things to put to get the solution work ? BR Le 03/01/11 19:55, Kevin Fenzi a écr

Re: CHROOT for SSH

2011-01-03 Thread Kevin Fenzi
On Mon, 03 Jan 2011 18:33:14 +0100 Luc MAIGNAN wrote: > Hi, > > I gave an SSH access to my server to somebody. But I want (and only > for him) "chroot" him to its home. > > What is the easiest way to do this ? man sshd_config and look at 'ChrootDirectory' and 'Match'. You should be able to

Re: CHROOT for SSH

2011-01-03 Thread Chris Tyler
On Mon, 2011-01-03 at 18:33 +0100, Luc MAIGNAN wrote: > Hi, > > I gave an SSH access to my server to somebody. But I want (and only for > him) "chroot" him to its home. > > What is the easiest way to do this ? As a simpler-to-configure alternative, depending on your use case, a restricted shell

Re: CHROOT for SSH

2011-01-03 Thread Mauriat Miranda
On Mon, Jan 3, 2011 at 12:33 PM, Luc MAIGNAN wrote: > Hi, > > I gave an SSH access to my server to somebody. But I want (and only for > him) "chroot" him to its home. > > What is the easiest way to do this ? > > BR I would recommend something like jailkit http://olivier.sessink.nl/jailkit/ -- M