|
68 | 68 | Checksum: "crc32c", |
69 | 69 | } |
70 | 70 |
|
| 71 | + // The default btrfs options used by an Azure Linux 4.0 image (kernel v6.18). |
| 72 | + // Same as AZL3 since nothing has changed since v5.15. |
| 73 | + azl4BtrfsOptions = btrfsOptions{ |
| 74 | + Features: []string{"extref", "skinny-metadata", "no-holes", "free-space-tree"}, |
| 75 | + Checksum: "crc32c", |
| 76 | + } |
| 77 | + |
71 | 78 | // The default btrfs options used by Fedora 42 (kernel v6.11+) |
72 | 79 | fedora42BtrfsOptions = btrfsOptions{ |
73 | 80 | Features: []string{"extref", "skinny-metadata", "no-holes", "free-space-tree"}, |
@@ -119,6 +126,17 @@ var ( |
119 | 126 | }, |
120 | 127 | } |
121 | 128 |
|
| 129 | + // The default ext4 options used by an Azure Linux 4.0 image. |
| 130 | + // See, the /etc/mke2fs.conf file in an Azure Linux 4.0 imag. |
| 131 | + azl4Ext4Options = ext4Options{ |
| 132 | + BlockSize: 4096, |
| 133 | + Features: []string{ |
| 134 | + "sparse_super", "large_file", "filetype", "resize_inode", "dir_index", "ext_attr", "has_journal", "extent", |
| 135 | + "huge_file", "flex_bg", "metadata_csum", "metadata_csum_seed", "64bit", "dir_nlink", "extra_isize", |
| 136 | + "orphan_file", |
| 137 | + }, |
| 138 | + } |
| 139 | + |
122 | 140 | // The default ext4 options used by Fedora 42 (kernel v6.11+) |
123 | 141 | // Based on typical Fedora defaults with modern ext4 features |
124 | 142 | fedora42Ext4Options = ext4Options{ |
@@ -170,6 +188,17 @@ var ( |
170 | 188 | Features: []string{"bigtime", "crc", "finobt", "inobtcount", "reflink", "rmapbt", "sparse"}, |
171 | 189 | } |
172 | 190 |
|
| 191 | + // The default xfs options used by an Azure Linux 4.0 image (kernel v6.18). |
| 192 | + // See, the /usr/share/xfsprogs/mkfs/lts_6.12.conf file. |
| 193 | + azl4XfsOptions = xfsOptions{ |
| 194 | + Features: []string{"bigtime", "crc", "finobt", "inobtcount", "reflink", "rmapbt", "sparse", "nrext64"}, |
| 195 | + } |
| 196 | + |
| 197 | + // GRUB 2.12 supports 'nrext64'. |
| 198 | + azl4BootXfsOptions = xfsOptions{ |
| 199 | + Features: []string{"bigtime", "crc", "finobt", "inobtcount", "reflink", "rmapbt", "sparse", "nrext64"}, |
| 200 | + } |
| 201 | + |
173 | 202 | // The default xfs options used by Fedora 42 (kernel v6.11+) |
174 | 203 | // Based on modern XFS features supported in recent kernels |
175 | 204 | fedora42XfsOptions = xfsOptions{ |
@@ -207,6 +236,12 @@ var ( |
207 | 236 | Xfs: azl3XfsOptions, |
208 | 237 | BootXfs: azl3BootXfsOptions, |
209 | 238 | }, |
| 239 | + targetos.TargetOsAzureLinux4: { |
| 240 | + Btrfs: azl4BtrfsOptions, |
| 241 | + Ext4: azl4Ext4Options, |
| 242 | + Xfs: azl4XfsOptions, |
| 243 | + BootXfs: azl4BootXfsOptions, |
| 244 | + }, |
210 | 245 | targetos.TargetOsFedora42: { |
211 | 246 | Btrfs: fedora42BtrfsOptions, |
212 | 247 | Ext4: fedora42Ext4Options, |
|
0 commit comments