1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-07 03:47:55 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
Sohan Kunkerkar
28c33229f5 exec/util: add blkid API to query block devices based on FSTYPE
This change adds a blkid API to query block devices based on
the particular filesystem.
2021-07-22 15:58:24 -04:00
Benjamin Gilbert
5786cad3a0 stages/disks: warn if libblkid finds multiple filesystem signatures
When checking whether an existing filesystem matches the config, detect
multiple filesystem signatures on a target partition.  If found, log a
warning.  Don't do more than that for now, for backward compatibility
and because it's not clear that we should reject an otherwise-matching
filesystem just because it contains some leftover bits.

Disallow multiple signatures during test output validation, unless the
test requests otherwise.
2020-06-03 13:02:52 -04:00
Ignaz Forster
06894446c4 Continue on empty GPT partition label
In case no GPT partition label is set don't abort execution.
2019-09-24 20:25:10 +02:00
Andrew Jeddeloh
fa0a58e224 internal: don't use partitions.{size,start}
Stop using the storage.disk.partitions.{size,start} fields since they
are deprecated. Use the sizeMiB and startMiB fields instead.
2019-03-28 13:10:08 -07:00
Andrew Jeddeloh
4269fe0349 exec/util: handle 4k sectors correctly
libblkid always assumes sectors are 512 bytes, regardless of actual
size. Add detection for otherly sized sectors (e.g. 4k) and translate
the 512 byte values to logical-sector-sized values.
2018-08-22 10:06:47 -07:00
Andrew Jeddeloh
e913593318 exec/util: allow blkid to read partition info
Change the blkid probing to probe for partition information as well. Add
new stub definitions to .travis.yml
2018-05-31 13:34:14 -07:00
Derek Gonyeo
8aa4f7dd64 config/type/filesystems: add uuid and label fields
This commit adds two fields to the mount object in a filesystem: label
and uuid. With these changes, for filesystem reuse the label must always
match and the uuid must match if one is given in the config.
2017-05-19 10:08:05 -07:00
Derek Gonyeo
bb701519ba *: add support for reusing existing filesystems
This adds the 'wipeFilesystem' flag to filesystem's 'mount' object. When
this flag is false, Ignition will inspect the current filesystem's type,
and reuse it if it matches the desired state. If this flag is true, the
current filesystem will always be reformatted when Ignition is run.
This is useful if the user wants to persist data across multiple runs of
Ignition.

This new flag can be safely used in conjunction with the deprecated
'force' flag.  When both are set, the target filesystem is first checked
to see if it's the correct type. If so, the format operation is skipped.
If not, the 'force' flag determines if the existing filesystem (if any)
will be overwritten.
2017-05-19 10:08:05 -07:00