As of this document's author-date (2019-03-21), the AMIgen7 scripts now support the optional creation of AMIs with XFS filesystems.
The default behavior for AMIgen7 remains creating EXT4-based AMIs. This ensures that any downstream projects that rely on – or even merely "expect" – the prior, EXT4-based behavior, will continue to function without further modification. For those wishing to create AMIs with XFS-based filesystems, it will be necessary to:
- Invoke the
DiskSetup.sh
script with the additional filesystem flag and specify thexfs
filesystem-type. In other words, add-f xfs
to whatever method you use to invoke theDiskSetup.sh
script. - Invoke the
MkChrootTree.sh
script with the additional script-argument,<FSTYPE>
. Doing so allows the explicit selection ofext4
– as well asext3
(not tested) – orxfs
. In other words, when calling theMkChrootTree.sh
script, do so as any of:
MkChrootTree.sh <BLOCKDEV>
MkChrootTree.sh <BLOCKDEV> ext4
MkChrootTree.sh <BLOCKDEV> ext3
MkChrootTree.sh <BLOCKDEV> xfs
In either case, the requested filesystem-type is case sensitive. The scripts will fail if you specify EXT4
, EXT3
or XFS
instead of ext4
, ext3
or xfs
(respectively).