Skip to content

Commit ead0e7e

Browse files
committed
Comment ephemeral0 when missing
1 parent ab27a59 commit ead0e7e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

common/configuration/puppet.yaml.tftpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ runcmd:
3535
- trap 'flag_cloud_init_failed' ERR
3636
- chmod 755 /etc # avoid issue with Rocky 9.4
3737
- test ! -d /${sudoer_username} && userdel -f -r ${sudoer_username} && cloud-init clean -r
38+
- blkid -L ephemeral0 &>/dev/null || sed -i -E '\;^[[:space:]]*ephemeral0[[:space:]]+/mnt/ephemeral0[[:space:]];s;^;#;' /etc/fstab
3839
%{ if cloud_provider != "incus" ~}
3940
# most container images do not have selinux pre-installed
4041
- restorecon -R /${sudoer_username}

0 commit comments

Comments
 (0)