daemon: Remove e2prog hack (only needed for RHEL 5).

Instead this patch will be carried out of tree in the oldlinux branch.
This commit is contained in:
Richard W.M. Jones
2012-08-30 17:29:36 +01:00
parent 0573c19950
commit 163e030ee1
4 changed files with 18 additions and 110 deletions

View File

@@ -43,7 +43,6 @@ do_mkfs (const char *fstype, const char *device, int blocksize,
char sectorsize_str[32];
int r;
char *err;
char mke2fs[] = "mke2fs";
int extfs = 0;
if (STREQ (fstype, "ext2") || STREQ (fstype, "ext3") ||
@@ -54,11 +53,8 @@ do_mkfs (const char *fstype, const char *device, int blocksize,
* the mkfs program "eats" some options, in particular the -F
* option.
*/
if (extfs) {
if (e2prog (mke2fs) == -1)
return -1;
ADD_ARG (argv, i, mke2fs);
}
if (extfs)
ADD_ARG (argv, i, "mke2fs");
else
ADD_ARG (argv, i, "mkfs");