Unmask and enable tmp.mount for overcloud-partition

In recent centos 8 images tmp.mount is masked, which causes issues
with all defined LVM mounts (/ is readonly, other mounts fail).

This change unmasks and enables tmp.mounted so the existing LVM /tmp
mounts correctly. It also makes fsck-passno compliant with the
documentation[1] so that / has value 1 and all other mounts are set to
2.

Blueprint: whole-disk-default
[1] https://www.man7.org/linux/man-pages/man5/fstab.5.html

Change-Id: Ib517e73845a7698f873a4f3207ffa9c54cdbcbef
This commit is contained in:
Steve Baker 2021-05-20 12:50:00 +12:00
parent fe5cc75a2e
commit 1635ba8abe
4 changed files with 21 additions and 5 deletions

View File

@ -13,7 +13,7 @@
mount_point: /boot/efi mount_point: /boot/efi
fstab: fstab:
options: "defaults" options: "defaults"
fsck-passno: 1 fsck-passno: 2
- name: BSP - name: BSP
type: 'EF02' type: 'EF02'
size: 8MiB size: 8MiB
@ -86,7 +86,7 @@
mount_point: /var/log mount_point: /var/log
fstab: fstab:
options: "rw,relatime" options: "rw,relatime"
fsck-passno: 3 fsck-passno: 2
- mkfs: - mkfs:
name: fs_audit name: fs_audit
base: lv_audit base: lv_audit
@ -95,7 +95,7 @@
mount_point: /var/log/audit mount_point: /var/log/audit
fstab: fstab:
options: "rw,relatime" options: "rw,relatime"
fsck-passno: 4 fsck-passno: 2
- mkfs: - mkfs:
name: fs_home name: fs_home
base: lv_home base: lv_home

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eux
# Ensure tmp.mount isn't masked, which is done in cloud images
# such as CentOS-Stream-GenericCloud-8
systemctl unmask tmp.mount
systemctl enable tmp.mount

View File

@ -73,7 +73,7 @@
mount_point: /var/log mount_point: /var/log
fstab: fstab:
options: "rw,relatime" options: "rw,relatime"
fsck-passno: 3 fsck-passno: 2
- mkfs: - mkfs:
name: fs_audit name: fs_audit
base: lv_audit base: lv_audit
@ -82,7 +82,7 @@
mount_point: /var/log/audit mount_point: /var/log/audit
fstab: fstab:
options: "rw,relatime" options: "rw,relatime"
fsck-passno: 4 fsck-passno: 2
- mkfs: - mkfs:
name: fs_home name: fs_home
base: lv_home base: lv_home

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eux
# Ensure tmp.mount isn't masked, which is done in cloud images
# such as CentOS-Stream-GenericCloud-8
systemctl unmask tmp.mount
systemctl enable tmp.mount