[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 02/36: daemons: make sure / is writable before setting up pflocal
From: |
Samuel Thibault |
Subject: |
[hurd] 02/36: daemons: make sure / is writable before setting up pflocal |
Date: |
Tue, 24 Sep 2013 12:31:12 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 4543e17766d1cc566b8f4dcbb7a4e5eb0f9a3f57
Author: Justus Winter <address@hidden>
Date: Thu Sep 19 11:12:45 2013 +0200
daemons: make sure / is writable before setting up pflocal
runsystem.sh checks whether /servers/socket/1 exists and creates it
using settrans -c if it does not. But at this point in the boot the
root filesystem is normally not writable. This patch fixes this.
* daemons/runsystem.sh: Make sure / is writable before attempting to
set up pflocal.
---
daemons/runsystem.sh | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/daemons/runsystem.sh b/daemons/runsystem.sh
index 4b9334e..f4f2771 100644
--- a/daemons/runsystem.sh
+++ b/daemons/runsystem.sh
@@ -55,10 +55,17 @@ function singleuser ()
}
-# See whether pflocal is setup already, and do so if not (install case)
-
-if ! test -e /servers/socket/1 && which settrans >/dev/null ; then
- settrans -c /servers/socket/1 /hurd/pflocal
+# See whether pflocal is set up already, and do so if not (install case)
+#
+# Normally this should be the case, but we better make sure since
+# without the pflocal server, pipe(2) does not work.
+if ! test -e /servers/socket/1 ; then
+ # The root filesystem should be read-only at this point.
+ if fsysopts / --update --writable ; then
+ settrans -c /servers/socket/1 /hurd/pflocal
+ else
+ singleuser "Failed to create /servers/socket/1."
+ fi
fi
# We expect to be started by console-run, which gives us no arguments and
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (3085332 -> f351440), Samuel Thibault, 2013/09/24
- [hurd] 02/36: daemons: make sure / is writable before setting up pflocal,
Samuel Thibault <=
- [hurd] 03/36: sutils: set up /dev/null using /bin/nullpriv in MAKEDEV.sh, Samuel Thibault, 2013/09/24
- [hurd] 01/36: Fix cursor size, Samuel Thibault, 2013/09/24
- [hurd] 04/36: hurd: add _reply suffix to the routines in process_reply.defs, Samuel Thibault, 2013/09/24
- [hurd] 05/36: hurd: add _reply suffix to the routines in fsys_reply.defs, Samuel Thibault, 2013/09/24
- [hurd] 06/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 10/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 09/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 20/36: Properly return error, Samuel Thibault, 2013/09/24
- [hurd] 19/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 15/36: Fix setting modem control lines, Samuel Thibault, 2013/09/24