Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832043 - >=sys-apps/portage-3.0.29 claims there is no /run mounted when run in a chroot
Summary: >=sys-apps/portage-3.0.29 claims there is no /run mounted when run in a chroot
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-25 14:19 UTC by tt_1
Modified: 2022-01-25 14:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output from emerge --info (emerge-info,5.63 KB, text/plain)
2022-01-25 14:20 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2022-01-25 14:19:09 UTC
so I just noticed this while chrooting and compiling stuff: when upgrading portage from 3.0.28-r1 to 3.0.29 or newer, there is a strong warning about not mounted /sys 

emerge -av rust-bin -1
!!! It seems /run is not mounted. Process management may malfunction.

it seems to happen only when inside a chroot. 

here is how I setup mine: 

mount -o loop var/portage/portage.sqfs usr/portage/
mount -t proc none proc/
mount --rbind /dev dev/
mount --rbind /sys sys/

screen chroot . /bin/bash
followed by 
source /etc/profile
env-update

from outside of the chroot, sys/ is mounted all the way:

ls sys/
block  bus  class  dev  devices  firmware  fs  kernel  module  power

and so is from within the chrooted dir:

ls /sys/
block  bus  class  dev  devices  firmware  fs  kernel  module  power


however, if I fire up portage, it gives out the aforementioned warning: 

!!! It seems /run is not mounted. Process management may malfunction.

current workaround: downgrade portage to portage-3.0.28-r1 

note: this is an openrc system, and I believe this is a false positive. 

Tried to diff the tarballs of portage-3.0.28 and portage-3.0.29, but was unable to see an obvious problem.
Comment 1 tt_1 2022-01-25 14:20:58 UTC
Created attachment 763610 [details]
output from emerge --info
Comment 2 tt_1 2022-01-25 14:36:01 UTC
whops, I managed to read /sys instead of /run. 

mount --rbind /run makes portage silence the warning