From 21578ce725c2304c7d46e5ec08b38e8841f6154a Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 2 Nov 2019 15:32:27 -0500 Subject: hscript: disk: libparted returns 1 on success, not 0 --- hscript/disk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hscript') diff --git a/hscript/disk.cc b/hscript/disk.cc index 15e5863..0f6828a 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -249,7 +249,7 @@ bool DiskLabel::execute(ScriptOptions options) const { return false; } - return (ped_disk_commit(disk) == 0); + return (ped_disk_commit(disk) == 1); #else return false; #endif /* HAS_INSTALL_ENV */ -- cgit v1.2.3-70-g09d2