]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Changing output in templates/el9-standard.ks
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 17 Oct 2023 14:56:45 +0000 (16:56 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 17 Oct 2023 14:56:45 +0000 (16:56 +0200)
templates/el9-standard.ks

index 79c820d50155508775462cf8ea8b39f2edc79b33..57a3eb57dcdfdc43099c1f6980f8d8d017205d88 100644 (file)
@@ -197,6 +197,21 @@ grubby --default-index
 grubby --default-title
 grubby --default-kernel
 
+echo
+echo "LVM:"
+
+echo
+echo "pvs"
+pvs --units m
+
+echo
+echo "vgs"
+vgs --units m
+
+echo
+echo "lvs"
+lvs --units m
+
 ### remove unnecessary directory
 rm -rf /var/var
 
@@ -249,6 +264,12 @@ echo "RedHat repository path prefix:        '${redhat_repo_path_prefix}'"
 echo "RedHat GPK key:                       '${redhat_gpg_key}'"
 {% endif %}
 
+echo
+echo "Mangling /etc/lvm/lvm.conf ..."
+sed -i -e 's/^\(.*\)# use_devicesfile.*/\1use_devicesfile = 0/' /etc/lvm/lvm.conf
+echo
+grep devicesfile /etc/lvm/lvm.conf
+
 ###############################################################################
 # Performing snippets