diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-07-19 15:23:09 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-07-19 15:23:09 +0000 |
commit | 1f57964aae4a2bef3fc9b6048f221e513aff3870 (patch) | |
tree | ce7feb2a86abdb9c113847adc35ba7c24b02c240 /usr.sbin | |
parent | 583e5f4ad611c43695fd5bde0babcf7e9b187b18 (diff) |
Should use ufs_args here after all.
While here, make messages more correct.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/installboot/loongson_installboot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/installboot/loongson_installboot.c b/usr.sbin/installboot/loongson_installboot.c index 727f6b2560a..30994071ed0 100644 --- a/usr.sbin/installboot/loongson_installboot.c +++ b/usr.sbin/installboot/loongson_installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loongson_installboot.c,v 1.2 2020/07/18 16:42:00 deraadt Exp $ */ +/* $OpenBSD: loongson_installboot.c,v 1.3 2020/07/19 15:23:08 visa Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -95,7 +95,7 @@ write_filesystem(struct disklabel *dl, char part) { static char *fsckfmt = "/sbin/fsck_ext2fs %s >/dev/null"; static char *newfsfmt ="/sbin/newfs_ext2fs %s >/dev/null"; - struct ext2fs_args args; + struct ufs_args args; char cmd[60]; char dst[PATH_MAX]; char *src; @@ -154,7 +154,7 @@ write_filesystem(struct disklabel *dl, char part) } rslt = mount(MOUNT_EXT2FS, dst, 0, &args); if (rslt == -1) { - warn("unable to mount EFI System partition"); + warn("unable to mount ext2fs partition"); goto rmdir; } } @@ -163,7 +163,7 @@ write_filesystem(struct disklabel *dl, char part) /* Create "/boot" directory in <duid>.<part>. */ if (strlcat(dst, "/boot", sizeof(dst)) >= sizeof(dst)) { rslt = -1; - warn("unable to build /efi directory"); + warn("unable to build /boot directory"); goto umount; } rslt = mkdir(dst, 0755); |