Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 339112 Details for
Bug 448156
Genkernel creates broken initramfs image - wrong lvm links blocks booting to a LVM rootfs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
genkernel-lvm-to-sbin.patch
genkernel-lvm-to-sbin.patch (text/plain), 2.93 KB, created by
Tom Wijsman (TomWij) (RETIRED)
on 2013-02-17 02:23:21 UTC
(
hide
)
Description:
genkernel-lvm-to-sbin.patch
Filename:
MIME Type:
Creator:
Tom Wijsman (TomWij) (RETIRED)
Created:
2013-02-17 02:23:21 UTC
Size:
2.93 KB
patch
obsolete
>diff -ur a/defaults/initrd.scripts b/defaults/initrd.scripts >--- a/defaults/initrd.scripts 2013-02-17 02:43:59.569540782 +0100 >+++ b/defaults/initrd.scripts 2013-02-17 02:44:19.062872389 +0100 >@@ -672,17 +672,17 @@ > > if [ "${USE_LVM_NORMAL}" = '1' ] > then >- if [ -e '/bin/lvm' ] >+ if [ -e '/sbin/lvm' ] > then > for dev in ${RAID_DEVICES} > do > setup_md_device "${dev}" > done > >- # This is needed for /bin/lvm to accept the following logic >- lvm_commands="#! /bin/lvm" >+ # This is needed for /sbin/lvm to accept the following logic >+ lvm_commands="#! /sbin/lvm" > >- # If there is a cahe, update it. Unbreak at least dmcrypt >+ # If there is a cache, update it. Unbreak at least dmcrypt > [ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" > > # To activate volumegroups on all devices in the cache >@@ -695,7 +695,7 @@ > > # And finally execute it all (/proc/... needed if lvm is compiled without readline) > good_msg "Scanning for and activating Volume Groups" >- printf "%b\n" "${lvm_commands}" | /bin/lvm /proc/self/fd/0 >+ printf "%b\n" "${lvm_commands}" | /sbin/lvm /proc/self/fd/0 > else > bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" > fi >diff -ur a/gen_initramfs.sh b/gen_initramfs.sh >--- a/gen_initramfs.sh 2013-02-17 02:43:59.586207448 +0100 >+++ b/gen_initramfs.sh 2013-02-17 02:44:19.062872389 +0100 >@@ -301,11 +301,12 @@ > fi > cd ${TEMP} > mkdir -p "${TEMP}/initramfs-lvm-temp/bin/" >+ mkdir -p "${TEMP}/initramfs-lvm-temp/sbin/" > mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/" > if false && [ -e '/sbin/lvm.static' ] > then > print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm.static)...' >- cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/bin/lvm" || >+ cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/sbin/lvm" || > gen_die 'Could not copy over lvm!' > # See bug 382555 > if [ -e '/sbin/dmsetup.static' ] >@@ -315,7 +316,7 @@ > elif false && [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable' > then > print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm)...' >- cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/bin/lvm" || >+ cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/sbin/lvm" || > gen_die 'Could not copy over lvm!' > # See bug 382555 > if [ -e '/sbin/dmsetup' ] && LC_ALL="C" ldd /sbin/dmsetup | grep -q 'not a dynamic executable' >@@ -327,7 +328,7 @@ > compile_lvm > /bin/tar -jxpf "${LVM_BINCACHE}" -C "${TEMP}/initramfs-lvm-temp" || > gen_die "Could not extract lvm binary cache!"; >- mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/bin/lvm || >+ mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/sbin/lvm || > gen_die 'LVM error: Could not move lvm.static to lvm!' > # See bug 382555 > mv ${TEMP}/initramfs-lvm-temp/sbin/dmsetup.static ${TEMP}/initramfs-lvm-temp/bin/dmsetup ||
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 448156
:
334276
| 339112