preseed file with left over space in a volume group
vadud3 at gmail.com
vadud3 at gmail.com
Mon Jul 1 19:37:57 UTC 2019
I just had to add a late_command to remove the /extra, thanks to google
search for "preseed late_command lvremove"
d-i preseed/late_command string umount -f /target/extra/; sed -i
'/extra/d' /target/etc/fstab; lvremove -f /dev/*/*extra > /dev/null 2>&1;
On Tue, Jun 25, 2019 at 4:19 PM <vadud3 at gmail.com> wrote:
> Hi All,
>
> I like to not use up all the left over volume to the last LV and one way I
> can achieve that is using a partition /extra as the last LV and the remove
> it later after the OS built like below
>
> d-i partman-auto/expert_recipe string \
> boot-root :: \
> 1000 10 1000 ext3 \
> $primary{ } $bootable{ } \
> method{ format } format{ } \
> use_filesystem{ } filesystem{ ext3 } \
> mountpoint{ /boot } \
> . \
> 32000 10 32000 linux-swap \
> \$lvmok{ } \
> method{ swap } format{ } \
> . \
> 10000 10 10000 ext4 \
> \$lvmok{ } \
> method{ format } format{ } \
> use_filesystem{ } filesystem{ ext4 } \
> mountpoint{ /opt } \
> . \
> 30000 10 30000 ext4 \
> \$lvmok{ } \
> method{ format } format{ } \
> use_filesystem{ } filesystem{ ext4 } \
> mountpoint{ /var } \
> . \
> 130000 10 130000 ext4 \
> \$lvmok{ } \
> method{ format } format{ } \
> use_filesystem{ } filesystem{ ext4 } \
> mountpoint{ / } \
> . \
> 130000 10 130000 ext4 \
> \$lvmok{ } \
> method{ format } format{ } \
> use_filesystem{ } filesystem{ ext4 } \
> mountpoint{ /extra } \
> .
>
> After boot I remove lv /dev/system/extra to recover the extra space.
>
> Is there a better way to do this?
>
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20190701/27342d83/attachment.html>
More information about the ubuntu-users
mailing list