Make ERASE_DISK (setup-disk) via setup-alpine USEANSWERFILE
On setup-disk
, there is an option to non interactively erase disks via ERASE_DISK=/dev/sda setup-disk -m sys /dev/sda
.
The same idea also works with setup-alpine
.
It would be nice to be able to set ERASE_DISK
via USEANSERFILE
.
setup-alpine -f ANSWERS
# ANSWERS file
ERASE_DISK=/dev/sda # <---- Does not pass through from setup-alpine into setup-disk
DISKOPTS="-m sys /dev/sda"
Since it is possible to define DISKOPTS
via USEANSERFILE
, I see no reason why ERASE_DISK
could not be exported/forwarded. I could send a patch for this.
relevant lines: