mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sys-kernel/linux-firmware: avoid mount-boot if ROOT is set
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -70,10 +70,10 @@ PATCHES=( "${FILESDIR}"/${PN}-copy-firmware-r4.patch )
|
||||
|
||||
pkg_pretend() {
|
||||
if use initramfs; then
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel; then
|
||||
if use dist-kernel; then
|
||||
# Check, but don't die because we can fix the problem and then
|
||||
# emerge --config ... to re-run installation.
|
||||
nonfatal mount-boot_check_status
|
||||
[[ -z ${ROOT} ]] && nonfatal mount-boot_check_status
|
||||
else
|
||||
mount-boot_pkg_pretend
|
||||
fi
|
||||
@@ -376,8 +376,8 @@ pkg_postinst() {
|
||||
done
|
||||
|
||||
if use initramfs; then
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
if use dist-kernel; then
|
||||
[[ -z ${ROOT} ]] && dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
else
|
||||
# Don't forget to umount /boot if it was previously mounted by us.
|
||||
mount-boot_pkg_postinst
|
||||
|
||||
@@ -68,10 +68,10 @@ QA_PREBUILT="*"
|
||||
|
||||
pkg_pretend() {
|
||||
if use initramfs; then
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel; then
|
||||
if use dist-kernel; then
|
||||
# Check, but don't die because we can fix the problem and then
|
||||
# emerge --config ... to re-run installation.
|
||||
nonfatal mount-boot_check_status
|
||||
[[ -z ${ROOT} ]] && nonfatal mount-boot_check_status
|
||||
else
|
||||
mount-boot_pkg_pretend
|
||||
fi
|
||||
@@ -382,8 +382,8 @@ pkg_postinst() {
|
||||
done
|
||||
|
||||
if use initramfs; then
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
if use dist-kernel; then
|
||||
[[ -z ${ROOT} ]] && dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
else
|
||||
# Don't forget to umount /boot if it was previously mounted by us.
|
||||
mount-boot_pkg_postinst
|
||||
|
||||
Reference in New Issue
Block a user