Lines 15-21
sync
Link Here
|
15 |
# these are normally missing in installer environment |
15 |
# these are normally missing in installer environment |
16 |
# NB: /sbin writes rely on aufs in fact, would use /tmp otherwise |
16 |
# NB: /sbin writes rely on aufs in fact, would use /tmp otherwise |
17 |
# but that might clobber cases when the binaries have to differ |
17 |
# but that might clobber cases when the binaries have to differ |
18 |
for i in /sbin/{mdadm,lvm}; do |
18 |
for i in /sbin/{mdadm,lvm,cryptsetup}; do |
19 |
if [ ! -x "$i" -a -x "$destdir$i" ]; then |
19 |
if [ ! -x "$i" -a -x "$destdir$i" ]; then |
20 |
cp -p "$destdir$i" "$i" |
20 |
cp -p "$destdir$i" "$i" |
21 |
fi |
21 |
fi |
Lines 26-31
if [ -f "$destdir/etc/lvm/lvm.conf" ]; then
Link Here
|
26 |
cp -p "$destdir/etc/lvm/lvm.conf" /etc/lvm |
26 |
cp -p "$destdir/etc/lvm/lvm.conf" /etc/lvm |
27 |
fi |
27 |
fi |
28 |
|
28 |
|
|
|
29 |
for i in /dev/mapper/*_luks; do |
30 |
cryptsetup luksClose "`basename "$i"`" |
31 |
done |
32 |
|
29 |
chroot "$destdir" swapoff -a |
33 |
chroot "$destdir" swapoff -a |
30 |
|
34 |
|
31 |
umount "$destdir/dev/pts" |
35 |
umount "$destdir/dev/pts" |
32 |
- |
|
|