Skip to content

Instantly share code, notes, and snippets.

@saschagrunert
Created December 5, 2022 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saschagrunert/1a8b74a95f314fd78126ac5f4a265b43 to your computer and use it in GitHub Desktop.
Save saschagrunert/1a8b74a95f314fd78126ac5f4a265b43 to your computer and use it in GitHub Desktop.
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: recreate-backingfsblockdev
spec:
config:
ignition:
version: 3.2.0
systemd:
units:
- contents: |
[Unit]
Description="Recreation of the backingFsBlockDev"
[Service]
ExecStart=podman run --privileged -v /var/lib/containers/storage/overlay:/var/lib/containers/storage/overlay quay.io/saschagrunert/backingfsblockdev:latest
enabled: false
name: backingfsblockdev.service
- contents: |
[Unit]
Description="Run backingFsBlockDev.service"
[Timer]
OnBootSec=5min
OnUnitActiveSec=30
Unit=backingfsblockdev.service
[Install]
WantedBy=multi-user.target
enabled: true
name: backingfsblockdev.timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment