2012-12-06 13:36:42 |
Soren Hansen |
description |
(Seen on Precise)
I'm using a preseed to install a system. I'm don't care at all what was on the system before, I just want to apply my new partition layout and install. However, due to a previous installation, I end up getting the partman-lvm/device_remove_lvm_span prompt.
Glancing at the code, it seems I'd need to make sure all disks were listed in partman-auto/disk, but for this new install, I really just wnat to install on a single disk.
I resorted to passing this in my preseed, but I feel that shouldn't be necessary:
d-i partman/early_command string vgs --separator=: --noheadings | cut -f1 -d: | while read vg ; do vgchange -an $vg ; done ;\
pvs --separator=: --noheadings | cut -f1 -d: | while read pv ; do pvremove -ff -y $pv ; done |
(Seen on Precise)
I'm using a preseed to install a system. I don't care at all what was on the system before, I just want to apply my new partition layout and install. However, due to a previous installation, I end up getting the partman-lvm/device_remove_lvm_span prompt.
Glancing at the code, it seems I'd need to make sure all disks were listed in partman-auto/disk, but for this new install, I really just want to install on a single disk.
I resorted to passing this in my preseed, but I feel that shouldn't be necessary:
d-i partman/early_command string vgs --separator=: --noheadings | cut -f1 -d: | while read vg ; do vgchange -an $vg ; done ;\
pvs --separator=: --noheadings | cut -f1 -d: | while read pv ; do pvremove -ff -y $pv ; done |
|