summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-11-09 16:25:47 +0000
committerjoerg <joerg@FreeBSD.org>1996-11-09 16:25:47 +0000
commitce411f960dcde291410b04a762525490f419123b (patch)
tree434f699a559264a1da3e540461282ac615b22125 /usr.sbin
parent5e95f3ceb1215a2995223ced1bdad086a2e6ab66 (diff)
downloadFreeBSD-src-ce411f960dcde291410b04a762525490f419123b.zip
FreeBSD-src-ce411f960dcde291410b04a762525490f419123b.tar.gz
Several improvements to the `fixit' configuration:
. Don't gzip the crunched binary by now; it just fits, and execution is a lot faster this way (it's truly demand-paged again). . Add more(1), ft(8), protocols(5), a stripped down services(5). . Improve the .profile, and make sysinstall actually use it again. Still no go for a 4 MB configuration though. :-(
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/install.c15
-rw-r--r--usr.sbin/sysinstall/install.c15
2 files changed, 18 insertions, 12 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index b9c831d..74282c8 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.137 1996/11/08 05:38:27 jkh Exp $
+ * $Id: install.c,v 1.138 1996/11/09 11:57:40 joerg Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -285,11 +285,13 @@ installFixitFloppy(dialogMenuItem *self)
"be essentially usable.");
}
}
- /* Link the spwd.db file */
+ /* Link the /etc/ files */
if (DITEM_STATUS(Mkdir("/etc")) != DITEM_SUCCESS)
msgConfirm("Unable to create an /etc directory! Things are weird on this floppy..");
- else if (symlink("/mnt2/etc/spwd.db", "/etc/spwd.db") == -1 && errno != EEXIST)
- msgConfirm("Couldn't symlink the /etc/spwd.db file! I'm not sure I like this..");
+ else if ((symlink("/mnt2/etc/spwd.db", "/etc/spwd.db") == -1 && errno != EEXIST) ||
+ (symlink("/mnt2/etc/protocols", "/etc/protocols") == -1 && errno != EEXIST) ||
+ (symlink("/mnt2/etc/services", "/etc/services") == -1 && errno != EEXIST))
+ msgConfirm("Couldn't symlink the /etc/ files! I'm not sure I like this..");
if (!file_readable(TERMCAP_FILE))
create_termcap();
if (!(child = fork())) {
@@ -303,9 +305,10 @@ installFixitFloppy(dialogMenuItem *self)
}
else
msgDebug("fixit shell: Unable to get terminal attributes!\n");
- printf("When you're finished with this shell, please type exit.\n");
- printf("The fixit floppy itself is mounted as /mnt2\n");
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/stand:/mnt2/stand", 1);
+ /* use the .profile from the fixit floppy */
+ setenv("HOME", "/mnt2", 1);
+ chdir("/mnt2");
execlp("sh", "-sh", 0);
msgDebug("fixit shell: Failed to execute shell!\n");
return -1;
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index b9c831d..74282c8 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.137 1996/11/08 05:38:27 jkh Exp $
+ * $Id: install.c,v 1.138 1996/11/09 11:57:40 joerg Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -285,11 +285,13 @@ installFixitFloppy(dialogMenuItem *self)
"be essentially usable.");
}
}
- /* Link the spwd.db file */
+ /* Link the /etc/ files */
if (DITEM_STATUS(Mkdir("/etc")) != DITEM_SUCCESS)
msgConfirm("Unable to create an /etc directory! Things are weird on this floppy..");
- else if (symlink("/mnt2/etc/spwd.db", "/etc/spwd.db") == -1 && errno != EEXIST)
- msgConfirm("Couldn't symlink the /etc/spwd.db file! I'm not sure I like this..");
+ else if ((symlink("/mnt2/etc/spwd.db", "/etc/spwd.db") == -1 && errno != EEXIST) ||
+ (symlink("/mnt2/etc/protocols", "/etc/protocols") == -1 && errno != EEXIST) ||
+ (symlink("/mnt2/etc/services", "/etc/services") == -1 && errno != EEXIST))
+ msgConfirm("Couldn't symlink the /etc/ files! I'm not sure I like this..");
if (!file_readable(TERMCAP_FILE))
create_termcap();
if (!(child = fork())) {
@@ -303,9 +305,10 @@ installFixitFloppy(dialogMenuItem *self)
}
else
msgDebug("fixit shell: Unable to get terminal attributes!\n");
- printf("When you're finished with this shell, please type exit.\n");
- printf("The fixit floppy itself is mounted as /mnt2\n");
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/stand:/mnt2/stand", 1);
+ /* use the .profile from the fixit floppy */
+ setenv("HOME", "/mnt2", 1);
+ chdir("/mnt2");
execlp("sh", "-sh", 0);
msgDebug("fixit shell: Failed to execute shell!\n");
return -1;
OpenPOWER on IntegriCloud