diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-02 02:05:16 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-02 02:05:16 -0600 |
commit | 645f8e816a0c3a859a435cdf19b948013ccba4c8 (patch) | |
tree | 7468bdc94ad0e0b598c1877838daa02121712a69 | |
parent | b3b01bf503da3b3af24c1ebcfea3f17fe0f3613f (diff) | |
download | horizon-645f8e816a0c3a859a435cdf19b948013ccba4c8.tar.gz horizon-645f8e816a0c3a859a435cdf19b948013ccba4c8.tar.bz2 horizon-645f8e816a0c3a859a435cdf19b948013ccba4c8.tar.xz horizon-645f8e816a0c3a859a435cdf19b948013ccba4c8.zip |
hscript: disk: Filesystem: Use full paths for mkfs
This allows the executor to run when PATH does not contain /sbin nor
/usr/sbin.
-rw-r--r-- | hscript/disk.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc index 3fdeb2a..34a6e06 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -653,28 +653,28 @@ bool Filesystem::execute() const { switch(_type) { case Ext2: - cmd = "mkfs.ext2"; + cmd = "/sbin/mkfs.ext2"; break; case Ext3: - cmd = "mkfs.ext3"; + cmd = "/sbin/mkfs.ext3"; break; case Ext4: - cmd = "mkfs.ext4"; + cmd = "/sbin/mkfs.ext4"; break; case HFSPlus: - cmd = "mkfs.hfsplus"; + cmd = "/sbin/mkfs.hfsplus"; args.push_back("-w"); break; case JFS: - cmd = "mkfs.jfs"; + cmd = "/sbin/mkfs.jfs"; args.push_back("-q"); break; case VFAT: - cmd = "mkfs.vfat"; + cmd = "/usr/sbin/mkfs.vfat"; args.push_back("-F32"); break; case XFS: - cmd = "mkfs.xfs"; + cmd = "/sbin/mkfs.xfs"; args.push_back("-f"); break; } |