-
Notifications
You must be signed in to change notification settings - Fork 276
Prevent modification of partitions/devices in use #1745
Description
Feature Request
Desired Feature
When Ignition is told to delete or modify a partition or whole device that is in use, it will run sgdisk and do the operation, even if, e.g., the partition is used by device mapper for a dm-verity mount or similar. Whether the boot fails depends on the OS but it might be that it succeeds but subsequent boots would fail.
Best would be if Ignition won't modify partitions/devices if it sees that they are in use. Logic to detect that with lsblk can be found in #1717 (comment)
Other Information
sgdisk doesn't update the kernel partition objects if any of the partitions on a device is in use. But even with #1717 that adds updating the kernel partition objects when possible (I think deletion of partitions in use is not possible), the above problem still exists and we should prevent modifying partitions when they are in use.