mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-apps/shadow: Ensure /bin is present before moving file into it
When building with a new prefix, sometimes the /bin directory does not exist at install time. Therefore, we need to create it before using it. You can recreate if you try to run: emerge --prefix=/test shadow Closes: https://github.com/gentoo/gentoo/pull/10107 Signed-off-by: Sargun Dhillon <sargun@sargun.me> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
committed by
Mike Gilbert
parent
68dc6ac8a8
commit
af38adc816
@@ -110,6 +110,7 @@ src_install() {
|
||||
doins "${FILESDIR}"/default/useradd
|
||||
|
||||
# move passwd to / to help recover broke systems #64441
|
||||
dodir /bin
|
||||
mv "${ED%/}"/usr/bin/passwd "${ED%/}"/bin/ || die
|
||||
dosym ../../bin/passwd /usr/bin/passwd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user