Hello,
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.
In the past, chroot was a working command (at least to make to check). Does it not work properly anymore ?
Thank for your help.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
On Sun, Jul 17, 2016 at 9:55 AM, Patrick Dupre pdupre@gmx.com 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
mount -t proc proc /path/to/chroot_dir/proc
but you'd be better off using
systemd-nspawn -D /path/to/chroot_dir
to chroot without having to pre-mount proc or any other "api" filesystem.
Thank,
mount -t proc proc /path/to/chroot_dir/proc chroot works fine
but systemd-nspawn -D /path/to/chroot_dir provides: Failed to determine whether the unified cgroups hierarchy is used: No such file or directory
then,
Spawning container linux on /mnt/linux. Press ^] three times within 1s to kill container. Host and machine ids are equal (a386c24a48d84be2825a0b0cb284c5e0): refusing to link journals
Any idea?
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Sent: Sunday, July 17, 2016 at 4:23 PM From: "Tom H" tomh0665@gmail.com To: "Fedora Users" users@lists.fedoraproject.org Subject: Re: chroot
On Sun, Jul 17, 2016 at 9:55 AM, Patrick Dupre pdupre@gmx.com 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
mount -t proc proc /path/to/chroot_dir/proc
but you'd be better off using
systemd-nspawn -D /path/to/chroot_dir
to chroot without having to pre-mount proc or any other "api" filesystem.
users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org