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.shscript with the additional filesystem flag and specify thexfsfilesystem-type. In other words, add-f xfsto whatever method you use to invoke theDiskSetup.shscript. - Invoke the
MkChrootTree.shscript 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.shscript, do so as any of:
MkChrootTree.sh <BLOCKDEV>MkChrootTree.sh <BLOCKDEV> ext4MkChrootTree.sh <BLOCKDEV> ext3MkChrootTree.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).