Skip to content

Commit

Permalink
tui: Fix initialization bug
Browse files Browse the repository at this point in the history
Fixes: #179

When a new partition is added with the TUI, it was defaulting to an
incorrect type of disk instead of partition.

Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Dec 3, 2018
1 parent ee00325 commit 22cb139
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tui/disk_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ func (page *DiskConfigPage) addDiskRow(bd *storage.BlockDevice) error {
addButton.OnClick(func(ev clui.Event) {
newPart := &storage.BlockDevice{
FsType: "ext4",
Type: storage.BlockDeviceTypePart,
MountPoint: "",
Size: freeSpace,
Parent: bd,
Expand Down

0 comments on commit 22cb139

Please sign in to comment.