internal: mandate installation device for the simplified installer

Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
Antonio Murdaca 2021-09-08 17:17:10 +02:00 committed by Achilleas Koutsou
parent 26b96483a3
commit 5005ff6184
3 changed files with 7 additions and 2 deletions

View file

@ -332,9 +332,8 @@ func (c *Customizations) GetFilesystemsMinSize() uint64 {
}
func (c *Customizations) GetInstallationDevice() string {
defaultDevice := "/dev/sda"
if c == nil || c.InstallationDevice == "" {
return defaultDevice
return ""
}
return c.InstallationDevice
}