Lines 306-317
Link Here
|
306 |
compile_lvm |
306 |
compile_lvm |
307 |
/bin/tar -jxpf "${LVM_BINCACHE}" -C "${TEMP}/initramfs-lvm-temp" || |
307 |
/bin/tar -jxpf "${LVM_BINCACHE}" -C "${TEMP}/initramfs-lvm-temp" || |
308 |
gen_die "Could not extract lvm binary cache!"; |
308 |
gen_die "Could not extract lvm binary cache!"; |
309 |
mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/bin/lvm || |
|
|
310 |
gen_die 'LVM error: Could not move lvm.static to lvm!' |
311 |
# See bug 382555 |
309 |
# See bug 382555 |
312 |
mv ${TEMP}/initramfs-lvm-temp/sbin/dmsetup.static ${TEMP}/initramfs-lvm-temp/bin/dmsetup || |
310 |
mv ${TEMP}/initramfs-lvm-temp/sbin/dmsetup.static ${TEMP}/initramfs-lvm-temp/bin/dmsetup || |
313 |
gen_die 'LVM error: Could not move dmsetup.static to dmsetup!' |
311 |
gen_die 'LVM error: Could not move dmsetup.static to dmsetup!' |
314 |
rm -rf ${TEMP}/initramfs-lvm-temp/{lib,share,man,include,sbin/{lvm,dmsetup}} |
312 |
rm -rf ${TEMP}/initramfs-lvm-temp/{lib,share,man,include,sbin/{lvm,dmsetup}} |
|
|
313 |
mv ${TEMP}/initramfs-lvm-temp/sbin/lvm{.static,} || |
314 |
gen_die 'LVM error: Could not move lvm.static to lvm!' |
315 |
fi |
315 |
fi |
316 |
if [ -x /sbin/lvm -o -x /bin/lvm ] |
316 |
if [ -x /sbin/lvm -o -x /bin/lvm ] |
317 |
then |
317 |
then |