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:
parent
fe5cc75a2e
commit
1635ba8abe
@ -13,7 +13,7 @@
|
||||
mount_point: /boot/efi
|
||||
fstab:
|
||||
options: "defaults"
|
||||
fsck-passno: 1
|
||||
fsck-passno: 2
|
||||
- name: BSP
|
||||
type: 'EF02'
|
||||
size: 8MiB
|
||||
@ -86,7 +86,7 @@
|
||||
mount_point: /var/log
|
||||
fstab:
|
||||
options: "rw,relatime"
|
||||
fsck-passno: 3
|
||||
fsck-passno: 2
|
||||
- mkfs:
|
||||
name: fs_audit
|
||||
base: lv_audit
|
||||
@ -95,7 +95,7 @@
|
||||
mount_point: /var/log/audit
|
||||
fstab:
|
||||
options: "rw,relatime"
|
||||
fsck-passno: 4
|
||||
fsck-passno: 2
|
||||
- mkfs:
|
||||
name: fs_home
|
||||
base: lv_home
|
||||
|
8
elements/overcloud-partition-uefi/post-install.d/98-enable-tmp-mount
Executable file
8
elements/overcloud-partition-uefi/post-install.d/98-enable-tmp-mount
Executable 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
|
@ -73,7 +73,7 @@
|
||||
mount_point: /var/log
|
||||
fstab:
|
||||
options: "rw,relatime"
|
||||
fsck-passno: 3
|
||||
fsck-passno: 2
|
||||
- mkfs:
|
||||
name: fs_audit
|
||||
base: lv_audit
|
||||
@ -82,7 +82,7 @@
|
||||
mount_point: /var/log/audit
|
||||
fstab:
|
||||
options: "rw,relatime"
|
||||
fsck-passno: 4
|
||||
fsck-passno: 2
|
||||
- mkfs:
|
||||
name: fs_home
|
||||
base: lv_home
|
||||
|
8
elements/overcloud-partition/post-install.d/99-enable-tmp-mount
Executable file
8
elements/overcloud-partition/post-install.d/99-enable-tmp-mount
Executable 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
|
Loading…
Reference in New Issue
Block a user