| Summary: | partitionmanger fails to create a valid entry in /etc/fstab when creating new part table and filesystem in one batch | ||
|---|---|---|---|
| Product: | [Applications] partitionmanager | Reporter: | Christian Hartmann <hartmann.christian> |
| Component: | general | Assignee: | Andrius Štikonas <andrius> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 24.02.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Christian Hartmann
2024-03-13 14:55:58 UTC
The problem is that fstab editing is instantaneous, it's not batched (and I don't think we can batch it) while the other stuff is batched. So by the time you edit fstab, there isn't enough info to put into /etc/fstab. Perhaps we should try to disable fstab editing functionality on new partitions, but it could still be problematic in case of filesystem reformats (when UUID would change) but partition is not new. So I'm unsure about what to do... i don't see the point in adding an entry in fstab that early in a "batched" process of individual steps. by my observations it is created basically in the first step of the batch. but why? the first step is creating a partition table and in the second step crating the file system. Both do not require this new entry. just in the last step, when the new partition shall be set to get automatically mounted on system startup. (In reply to Christian Hartmann from comment #2) > i don't see the point in adding an entry in fstab that early in a "batched" > process of individual steps. by my observations it is created basically in > the first step of the batch. but why? the first step is creating a partition > table and in the second step crating the file system. Both do not require > this new entry. just in the last step, when the new partition shall be set > to get automatically mounted on system startup. No, it's not batched at all. It is created when you click OK in fstab editing dialog. Basically when you open fstab dialog, it reads /etc/fstab and when you close it, it writes it back to disk. You don't even need to click apply. |