-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install: Force mkfs.xfs to overwrite #718
Conversation
Hm, you got this even when specifying |
Ah yes you did say that. Well...we have How about: Only if |
Yes, the sequence I tried was as follows. I used bootc install to-disk command to write images to /dev/sdb which was successful. The partition table was as follows:
I then deleted the 2 partitions on /dev/sdb manually using disk command.
After this when I ran the bootc install command it failed with the mentioned error. Even though --wipe was specified it only wiped the data on /dev/sdb.
|
There's a flip side to this in that this "existing partitions" check is the only thing right now that stops one from actively destroying e.g. the booted disk if (xref https://lwn.net/Articles/941764/ ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Reusing a disk (after manually deleting partitions on it) with xfs as file system, install to-disk command fails complaning about existing file system on root partition. Creating root filesystem (xfs) on device /dev/sdb2 (size=107.4 GB) > mkfs.xfs -m uuid=4826aa5b-0dd0-4382-a0c1-7c0b77cfd47d -L root /dev/sdb2 mkfs.xfs: /dev/sdb2 appears to contain an existing filesystem (xfs). mkfs.xfs: Use the -f option to force overwrite. Use the -f option with mkfs.xfs to force overwrite when --wipe is used. Signed-off-by: Sachin Sant <[email protected]> Signed-off-by: Colin Walters <[email protected]>
(This was missing a |
Thanks. Will take care of this requirement for future PRs. |
…1.0.210 build(deps): bump serde from 1.0.209 to 1.0.210
Reusing a disk (after manually deleting partitions on it) with xfs
as file system, install to-disk command fails complaning about
existing file system on root partition.
Creating root filesystem (xfs) on device /dev/sdb2 (size=107.4 GB)
Use the -f option with mkfs.xfs to force overwrite.
Signed-off-by: Sachin Sant [email protected]