Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 399892 Details for
Bug 533084
sys-kernel/dracut - dracut-initramfs-restore should mount separate /boot partition
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Initramfs restore script with auto-umount functionality
dracut-initamfs-restore.sh.patch (text/plain), 963 bytes, created by
Garry Filakhtov
on 2015-03-27 19:40:11 UTC
(
hide
)
Description:
Initramfs restore script with auto-umount functionality
Filename:
MIME Type:
Creator:
Garry Filakhtov
Created:
2015-03-27 19:40:11 UTC
Size:
963 bytes
patch
obsolete
>--- orig/dracut-initramfs-restore.sh 2014-10-24 13:19:58.000000000 +0200 >+++ patched/dracut-initramfs-restore.sh 2015-03-27 20:36:04.620382856 +0100 >@@ -3,6 +3,7 @@ > set -e > > KERNEL_VERSION="$(uname -r)" >+STATUS=0 > > [[ $dracutbasedir ]] || dracutbasedir=/usr/lib/dracut > SKIP="$dracutbasedir/skipcpio" >@@ -10,6 +11,13 @@ > > [[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id > >+if /bin/egrep -q "\s+/boot\s+" /etc/fstab; then >+ if ! /bin/grep -q " /boot " /proc/mounts; then >+ /bin/mount /boot >+ NEED_UMOUNT=1 >+ fi >+fi >+ > if [[ $MACHINE_ID ]] && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then > IMG="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd" > fi >@@ -28,7 +36,9 @@ > # something failed, so we clean up > echo "Unpacking of $IMG to /run/initramfs failed" >&2 > rm -f -- /run/initramfs/shutdown >- exit 1 >+ STATUS=1 > fi > >-exit 0 >+[ "${NEED_UMOUNT}" -eq "1" ] && umount -R /boot >+ >+exit ${STATUS}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 533084
:
392064
|
399892
|
399978