fix-partition-size #151
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "fix-partition-size"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Fix partition configuration, cache handling and hostname detection
Summary
ogFormatFsalways reporting failure due to broken return value (integer 0 compared asFalsein Python)ogMountFscrashing on stale symlinks left by former cache partitionsogFormatCachealways returningNoneon success, causing exit code 1Configurarshowing wrong exit code (1) when no formatting was requestedinitCacheogCheckNewCacheSizeincorrectly blocking valid configurations when partitions are being redefinedpartprobeand subsequent format commands by addingudevadm settleogGetHostnamenot resolving the hostname when neitherHOSTNAMEenv var, DHCP leases norhostname=kernel parameter are available — now extracts it from theip=kernel parameter (field 5 inip=client:server:gw:mask:hostname:iface:proto) and falls back tosocket.gethostname()Test plan
ope=0): verify exit code 0ope=1): verify exit code 0 and filesystems created correctlyogCheckNewCacheSizedoes not block the operationgetConfigurationdoes not crash when a former cache partition is remounted as a regular partitionogGetHostnamereturns the correct hostname from theip=kernel parameter