When installing, for example, packages, from a mounted file system, sysinstall assumes the file system is ufs. Fix: Patch for media.c: mediaClose(); @@ -448,7 +450,10 @@ "containing the FreeBSD distribution files:", 0); if (!cp) return DITEM_FAILURE; - strcpy(ufsDevice.name, "ufs"); + + if (statfs(cp, &st)) + return DITEM_FAILURE; + strcpy(ufsDevice.name, st.f_fstypename); ufsDevice.type = DEVICE_TYPE_UFS; ufsDevice.init = dummyInit; ufsDevice.get = mediaGetUFS;--5qeZczMLtW2yJ6ky3efC098Z8XEn0cZMBYOApGeMcXtBbIqy Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- media.c.orig Sun Mar 21 13:41:59 1999 +++ media.c Sun Mar 21 13:44:35 1999 @@ -39,6 +39,7 @@ #include <netdb.h> #include <sys/socket.h> #include <sys/param.h> +#include <sys/mount.h> #include <sys/errno.h> #include <sys/fcntl.h> #include <sys/stat.h> @@ -440,6 +441,7 @@ mediaSetUFS(dialogMenuItem *self) { static Device ufsDevice; + struct statfs st; char *cp; How-To-Repeat: Insert a CD with the packages `tree'. Run sysinstall. Under packages, select, for media, "File System" and put the mount point of your CDROM where asked. When installing a package, it says 'installing [...] from ufs'
Responsible Changed From-To: freebsd-bugs->jkh Sysinstall is Jordan's baby.
State Changed From-To: open->closed Hmmm. That's pretty cosmetic, but I guess I'll take it. :)