-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Armbian-install: add option to wipe target destination #6828
Conversation
Although partitioning is not my issue, I've also seen that the installer complained about too small partitions. I had choosen a 100 GB partition but the installer complained that there is only 125 MB left. Finally I found out, that this happens if the partition is still mounted from a previous install attempt (or even from a manual mount). |
Although I'm way more in favor of developing an actual solution to the problem instead of a workaround, I believe the proposed workaround has several other things that we should not do:
I am happy to assist in developing a solution for the actual problem, like making everything work even with previously defined partitions :) |
Added another check in the line.
We only wipe out partition defs.
Agree, but this would require some work. Expanding this tool or ... introduce some solution like Calamares?
We don't. Formating is done in next step. I have removed formating in the wipe part. |
Yes, this part we need to look into. With my solution / workaround this can't happen as we do auto partitioning. For most users this is just fine, but I do agree that we need some expansion of functionality. But before we do that, basic functions should work well. |
@ColorfulRhino can we proceed with this. Still better to have this in before developing something better. |
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.
Reading from the forum topic, I believe the issue was sometheing else in the end? Like needing to set the boot flag on the correct partition.
I'll see if I can come up with a solution that can check and enable the boot flag on a partition :)
short versionhaving something like long versionI had three issues, described in the forum thread:
supporting multiple partitions should be always seen as best practice since it may be required to replace the armbian partition from time to time (since there is no such thing like a do-release-upgrade for now). Having one or more data partitions, which will guarantee to survive, could be a life saver then. That does not necessarily mean, that all scenarios should be supported by the armbian-install. Experienced people have no problems in rsyning the sdcard to a custom partition or to wipe an already used partition but they may need to know the steps expected to be done and the knowledge how to configure/check the bootloader. at least for me u-boot is new territory. I will need to dig into u-boot and your scripts. So my suggestion to start with is: we should document (I could help on that)
features I would like to have are:
|
I would suggest to open a Jira ticket, so this information above is not lost. Not sure when this will be possible to implement, but chances are bigger if ticket exits. Here are basic instructions how-to: https://www.armbian.com/participate/
Add this into this secton: |
I have created a new task at #6905 which automatically gets mirrored to https://armbian.atlassian.net/browse/AR-2410 (checked if there was a similar Jira ticket already created but could not find one) One of the issues with Jira is that newcomers don't have access to create new tasks (at least I didn't have when I tried to the first time). Also on GH I believe more people will see it and we can also introduce the "good first issue" label :) |
Description
armbian-installer have troubles if we are installing OS to SSD with previously defined partitions. Adding a recommended option to start with a clean drive - wiping everything - is one way. In this case, our installer starts in predicted way. Also it gives user no option to choose wrong (too small) partition, if there are more of them pre-made.
Jira reference number AR-2393
https://forum.armbian.com/topic/41699-how-to-debugfix-armbian-config-for-kernel-update/#comment-195551
How Has This Been Tested?
Checklist: