Lines 301-311
Link Here
|
301 |
fi |
301 |
fi |
302 |
cd ${TEMP} |
302 |
cd ${TEMP} |
303 |
mkdir -p "${TEMP}/initramfs-lvm-temp/bin/" |
303 |
mkdir -p "${TEMP}/initramfs-lvm-temp/bin/" |
|
|
304 |
mkdir -p "${TEMP}/initramfs-lvm-temp/sbin/" |
304 |
mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/" |
305 |
mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/" |
305 |
if false && [ -e '/sbin/lvm.static' ] |
306 |
if false && [ -e '/sbin/lvm.static' ] |
306 |
then |
307 |
then |
307 |
print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm.static)...' |
308 |
print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm.static)...' |
308 |
cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/bin/lvm" || |
309 |
cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/sbin/lvm" || |
309 |
gen_die 'Could not copy over lvm!' |
310 |
gen_die 'Could not copy over lvm!' |
310 |
# See bug 382555 |
311 |
# See bug 382555 |
311 |
if [ -e '/sbin/dmsetup.static' ] |
312 |
if [ -e '/sbin/dmsetup.static' ] |
Lines 315-321
Link Here
|
315 |
elif false && [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable' |
316 |
elif false && [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable' |
316 |
then |
317 |
then |
317 |
print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm)...' |
318 |
print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm)...' |
318 |
cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/bin/lvm" || |
319 |
cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/sbin/lvm" || |
319 |
gen_die 'Could not copy over lvm!' |
320 |
gen_die 'Could not copy over lvm!' |
320 |
# See bug 382555 |
321 |
# See bug 382555 |
321 |
if [ -e '/sbin/dmsetup' ] && LC_ALL="C" ldd /sbin/dmsetup | grep -q 'not a dynamic executable' |
322 |
if [ -e '/sbin/dmsetup' ] && LC_ALL="C" ldd /sbin/dmsetup | grep -q 'not a dynamic executable' |
Lines 327-333
Link Here
|
327 |
compile_lvm |
328 |
compile_lvm |
328 |
/bin/tar -jxpf "${LVM_BINCACHE}" -C "${TEMP}/initramfs-lvm-temp" || |
329 |
/bin/tar -jxpf "${LVM_BINCACHE}" -C "${TEMP}/initramfs-lvm-temp" || |
329 |
gen_die "Could not extract lvm binary cache!"; |
330 |
gen_die "Could not extract lvm binary cache!"; |
330 |
mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/bin/lvm || |
331 |
mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/sbin/lvm || |
331 |
gen_die 'LVM error: Could not move lvm.static to lvm!' |
332 |
gen_die 'LVM error: Could not move lvm.static to lvm!' |
332 |
# See bug 382555 |
333 |
# See bug 382555 |
333 |
mv ${TEMP}/initramfs-lvm-temp/sbin/dmsetup.static ${TEMP}/initramfs-lvm-temp/bin/dmsetup || |
334 |
mv ${TEMP}/initramfs-lvm-temp/sbin/dmsetup.static ${TEMP}/initramfs-lvm-temp/bin/dmsetup || |