Remove manual zfs timers, try ubuntu-latest
- RUN --mount=type=bind throws errors
This commit is contained in:
parent
a0dbc64971
commit
4ba9fe4fa2
|
@ -21,7 +21,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build_push_aurora:
|
build_push_aurora:
|
||||||
name: Build and publish SB image with ZFS
|
name: Build and publish SB image with ZFS
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
29
build.sh
29
build.sh
|
@ -24,35 +24,6 @@ ADDPKGS=(
|
||||||
## Add gregw/extras COPR
|
## Add gregw/extras COPR
|
||||||
curl -so /etc/yum.repos.d/gregw-extras-fedora-40.repo https://copr.fedorainfracloud.org/coprs/gregw/extras/repo/fedora-40/gregw-extras-fedora-40.repo
|
curl -so /etc/yum.repos.d/gregw-extras-fedora-40.repo https://copr.fedorainfracloud.org/coprs/gregw/extras/repo/fedora-40/gregw-extras-fedora-40.repo
|
||||||
|
|
||||||
## Add systemd timers for periodic ZFS scrubs
|
|
||||||
cat << EOF > /usr/lib/systemd/zfs-scrub@.service
|
|
||||||
[Unit]
|
|
||||||
Description=zpool scrub on %i
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Nice=19
|
|
||||||
IOSchedulingClass=idle
|
|
||||||
KillSignal=SIGINT
|
|
||||||
ExecStart=/usr/sbin/zpool scrub %i
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat << EOF > /usr/lib//systemd/system/zfs-scrub@.timer
|
|
||||||
[Unit]
|
|
||||||
Description=Weekly zpool scrub on %i
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=Mon *-*-* 04:00:00
|
|
||||||
AccuracySec=1h
|
|
||||||
Persistent=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
RMSTRING=""
|
RMSTRING=""
|
||||||
ADDSTRING=""
|
ADDSTRING=""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue