scylladb / scylla-machine-image

Apache License 2.0
18 stars 25 forks source link

Azure "Resource Disk" support for swapfile is broken #431

Closed syuu1228 closed 1 year ago

syuu1228 commented 1 year ago

Since "Resource Disk" is ephemeral, we cannot configure swapfile on machine image building time. So e7e7daa0ced4d650013849711d7ced5ebb6ed569 is incorrect, we currently mistakenly using rootfs for swapfile. (It looks correct since the file path is /mnt/swapfile, but it was created before mounting /mnt so it actually on rootfs)

We have to setup it on scylla_image_setup (= instance startup time), not scylla_install_image (= machine image building time).