- Package:
- partman-auto
- Source:
- partman-auto
- Submitter:
- Robert Millan
- Date:
- 2011-12-29 09:09:12 UTC
- Severity:
- normal
Partman (guided partitioning) will still ask the user to select which disk to partition, even if there's only one disk. Maybe the fix could be implemented in debconf/cdebconf: when a multiselect question only has one possible answer, it could be skipped automaticaly.
Op 27-01-2007 om 15:47 schreef Robert Millan: Could/would that destroy data on the disk??? In other words: Consider the risk of losing information. Hope this Help Geert Stappers
personally i think its better that it asks consider the situation where a user has two drives but the one they want to use for debian is not detected. then they select the use entire disk option.
reassign 408641 partman-auto tags 408641 wontfix thanks I agree with others that having the disk explicitly selected has strong advantages (explicit selection of the disk means less chance of the wrong disk being formatted in case a second disk should not be detected). No, the same check could be easily implemented in partman-auto if we'd want to. Why cripple debconf for this?
tags 408641 - wontfix thanks If the user has only one disk, and chooses to do guided partitioning, then they have to choose which of their one disk they want to partition. The very next question (for the partitioning scheme) then confirms this by saying "Selected for partitioning:" followed by the exact name asked for in the previous question. The following question then confirms the generated partitioning scheme (and displays the exact disk name again), and the question after that confirms one more time that the user wants to write the changes to the disk. Thus, I think it seems entirely safe to default to the one-and-only disk if no other disk exists, given that the user will still get multiple chances to review and confirm their choice. - Josh Triplett
Josh Triplett wrote: FWIW, I tend to agree with this reasoning. It think it's likely that the current situation is a historical accident. It may be a vestigial organ from the time when partman did not include RAID and LVM setup, or from before udev and /sys were used to determine human readable device names. Patch attached (untested) & committed to people/joey branch.
Hi,
tested the patch and doesn't work.
I've tried also with grep "\n" and also doesn't work.
So i have tried with "wc":
select_auto_disk() {
local DEVS
DEVS=$(get_auto_disks)
[ -n "$DEVS" ] || return 1
if [[ `echo "$DEVS" | wc -l` == "1" ]]; then
# only one choice
db_set partman-auto/select_disk "$DEVS"
echo "$DEVS"
return 0
fi
but i get an error (please see image) which i don't understand.
I am also attaching syslog so it can be further analysed.
If this BR gets solved Debian Installer will require less 1/25 (4%) interaction to most users in standard installation.
tags 408641 - patch thanks The proposed patch is reported to not be working, so I remove the patch flag until someone report back with a tested and working patch.