Skip to content

Commit

Permalink
Merge pull request #848 from Linkster78/debian-resize
Browse files Browse the repository at this point in the history
debian: added disk resizing
  • Loading branch information
stgraber authored Oct 7, 2024
2 parents 5b3a70c + cfef033 commit 1fbce5f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions images/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,12 @@ packages:
architectures:
- arm64

- packages:
- cloud-guest-utils
action: install
types:
- vm

- packages:
- shim-signed
action: install
Expand Down Expand Up @@ -1430,6 +1436,29 @@ actions:
types:
- vm

- trigger: post-files
action: |-
#!/bin/sh
set -eux
# Automatic disk resize
cat << EOF > /etc/systemd/system/incus-growpart.service
[Unit]
Description=Incus - grow root partition
[Service]
Type=oneshot
ExecStartPre=-/usr/bin/growpart /dev/sda 2
ExecStart=/sbin/resize2fs /dev/sda2
[Install]
WantedBy=default.target
EOF
systemctl enable incus-growpart
types:
- vm

- trigger: post-files
action: |-
#!/bin/sh
Expand Down

0 comments on commit 1fbce5f

Please sign in to comment.