[Bug 1918990] Re: Curtin fails to deploy image when using an ext2 base filesystem due to swap.img
Frank Heimes
1918990 at bugs.launchpad.net
Thu Sep 14 14:08:06 UTC 2023
** Changed in: ubuntu-z-systems
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1918990
Title:
Curtin fails to deploy image when using an ext2 base filesystem due to
swap.img
Status in curtin:
Fix Released
Status in MAAS:
Fix Released
Status in Ubuntu on IBM z Systems:
Fix Released
Bug description:
I configured an IBM Z DPM Partition to use ext2 for / with no other
filesystem. The deployment fails when Curtin is unable to create
swap.img. While ext2 isn't widely used anymore we have had MAAS users
that prefer to use a non-journaling filesystem.
Running command ['sh', '-c', 'rm -f "$1" && umask 0066 && truncate -s 0 "$1" && { chattr +C "$1" || true; } && fallocate -l "${2}M" "$1" && mkswap "$1" || { r=$?; rm -f "$1"; exit $r; }', 'setup_swap', '/tmp/tmpry474p97/target//swap.img', '4096'] with allowed return codes [0] (capture=False)
chattr: Operation not supported while setting flags on /tmp/tmpry474p97/target//swap.img
fallocate: fallocate failed: Operation not supported
creating swap file '/swap.img' of 4096MB took 0.006 seconds
failed creating swap file '/swap.img' of 4096MB
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1918990/+subscriptions
More information about the foundations-bugs
mailing list