diff options
Diffstat (limited to 'app-misc/tails-installer/files/sgdisk.patch')
-rw-r--r-- | app-misc/tails-installer/files/sgdisk.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/tails-installer/files/sgdisk.patch b/app-misc/tails-installer/files/sgdisk.patch new file mode 100644 index 000000000000..21339b23ae6c --- /dev/null +++ b/app-misc/tails-installer/files/sgdisk.patch @@ -0,0 +1,29 @@ +--- /tails_installer/creator.py ++++ /tails_installer/creator.py +@@ -220,7 +220,7 @@ + raise NotImplementedError + + def update_system_partition_properties(self): +- cmd = ( [ '/sbin/sgdisk' ] ++ cmd = ( [ '/usr/sbin/sgdisk' ] + + [ '--typecode=1:%s' % ESP_GUID ] + + [ self.drive['parent'] ]) + self.popen(cmd, shell=False) +@@ -235,7 +235,7 @@ + if not device: + device = self.drive['device'] + +- proc = self.popen(['/sbin/sgdisk', '--print', device], shell=False, passive=True) ++ proc = self.popen(['/usr/sbin/sgdisk', '--print', device], shell=False, passive=True) + if proc.returncode: + return False + return True +@@ -249,7 +249,7 @@ + # understand... while we want to make it do this reset + # precisely to fix that unreadable partition table issue. + # Chicken'n'egg, right. +- self.popen(['/sbin/sgdisk', '--zap-all', device], ++ self.popen(['/usr/sbin/sgdisk', '--zap-all', device], + shell=False, passive=True) + + def switch_drive_to_system_partition(self): |