diff options
author | marcel <marcel@FreeBSD.org> | 2004-08-07 01:19:54 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-08-07 01:19:54 +0000 |
commit | c95736ca877336fbea29f1923918b940a8b691e6 (patch) | |
tree | 362598e70b61fe229cbafd56053d998e06076b4f /usr.sbin/sade/sade.h | |
parent | c26d1cbd7eb872a73d680663ab2340f1997498dd (diff) | |
download | FreeBSD-src-c95736ca877336fbea29f1923918b940a8b691e6.zip FreeBSD-src-c95736ca877336fbea29f1923918b940a8b691e6.tar.gz |
o Save pointers to the chunks for root, home, swap, usr, var and tmp in
global variables. On ia64, save a pointer to the efi chunk as well.
o At the same time, change checkLabels() to define these globals instead
of having the caller of checkLabels() pass addresses to variables for
these. Change the two callers correspondingly.
o Spent a bit more time adjusting try_auto_label() to prepate for having
the EFI partition created on ia64.
o Remove efi_mountpoint(). The EFI chunk is now available without having
to iterate over the disks and chunks to find it every time we need it.
o On ia64, now that the root chunk is globally available, set the
vfs.root.mountfrom tunable in loader.conf. This avoids that one cannot
boot into FreeBSD after an install. The kernel cannot find the root
device without a little help...
Diffstat (limited to 'usr.sbin/sade/sade.h')
-rw-r--r-- | usr.sbin/sade/sade.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index 8ae783e..5a69856 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -480,6 +480,17 @@ extern DMenu MenuXF86Config; /* Select XFree86 configuration type */ extern int FixItMode; /* FixItMode starts shell onc urrent device (ie Serial port) */ extern const char * StartName; /* Which name we were started as */ +/* Important chunks. */ +extern Chunk *HomeChunk; +extern Chunk *RootChunk; +extern Chunk *SwapChunk; +extern Chunk *TmpChunk; +extern Chunk *UsrChunk; +extern Chunk *VarChunk; +#ifdef __ia64__ +extern Chunk *EfiChunk; +#endif + /* Stuff from libdialog which isn't properly declared outside */ extern void display_helpfile(void); extern void display_helpline(WINDOW *w, int y, int width); @@ -656,7 +667,7 @@ int index_initialize(char *path); PkgNodePtr index_search(PkgNodePtr top, char *str, PkgNodePtr *tp); /* install.c */ -extern Boolean checkLabels(Boolean whinge, Chunk **rdev, Chunk **sdev, Chunk **udev, Chunk **vdev, Chunk **vtdev, Chunk **hdev); +extern Boolean checkLabels(Boolean whinge); extern int installCommit(dialogMenuItem *self); extern int installCustomCommit(dialogMenuItem *self); extern int installExpress(dialogMenuItem *self); |