Lines 116-124
Link Here
|
116 |
#still echo stderr for debugging |
116 |
#still echo stderr for debugging |
117 |
lvm_commands="#! ${lvm_path} --config '${config}'\n" |
117 |
lvm_commands="#! ${lvm_path} --config '${config}'\n" |
118 |
# Extra PV find pass because some devices might not have been available until very recently |
118 |
# Extra PV find pass because some devices might not have been available until very recently |
119 |
lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" |
119 |
for VG in ${VGS} ; do |
|
|
120 |
lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VG}\n" |
121 |
done |
120 |
# Now make the nodes |
122 |
# Now make the nodes |
121 |
lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" |
123 |
for VG in ${VGS} ; do |
|
|
124 |
lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VG}\n" |
125 |
done |
122 |
# Order of this is important, have to work around dash and LVM readline |
126 |
# Order of this is important, have to work around dash and LVM readline |
123 |
printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
127 |
printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
124 |
eend $? "Failed (possibly some LVs still needed for /usr or root)" |
128 |
eend $? "Failed (possibly some LVs still needed for /usr or root)" |