diff options
author | Devin Teske <dteske@FreeBSD.org> | 2013-12-12 20:47:18 +0000 |
---|---|---|
committer | Devin Teske <dteske@FreeBSD.org> | 2013-12-12 20:47:18 +0000 |
commit | 9ea4ca859598c5d1bf5a6dadf59192ebde4dfc73 (patch) | |
tree | 741c36cff086deefe0b9042a84f2a2c2339ed537 /usr.sbin/bsdinstall | |
parent | eba633a62f6701470b496a4cdbe646a7b13f3750 (diff) | |
download | src-9ea4ca859598c5d1bf5a6dadf59192ebde4dfc73.tar.gz src-9ea4ca859598c5d1bf5a6dadf59192ebde4dfc73.zip |
I caught the following snippet at the end of my /var/log/bsdinstall_log:
===
DEBUG: Running installation step: services
local: Not in a function
/usr/libexec/bsdinstall/services: cannot create : Read-only file system
/usr/libexec/bsdinstall/services: /tmp/bsdinstall/etc/rc.conf.services: \
Permission denied
===
The `local: Not in a function' is obvious, and was introduced by myself in
SVN revision 256348.
The latter two are caused by the attempt to use "\" to continue the line
after using the ">>" redirect. This appears to attempt to write a file with
the name " " in the current directory and subsequently attempts to execute
the file that was originally intended for writing (which is not executable;
hence the `Permission denied'). That was introduced in SVN r228192 about
2 years ago, apparently unnoticed until I started going over the debug
outputs very carefully.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=259276
Diffstat (limited to 'usr.sbin/bsdinstall')
-rwxr-xr-x | usr.sbin/bsdinstall/scripts/services | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/bsdinstall/scripts/services b/usr.sbin/bsdinstall/scripts/services index 8ce9e7bcd6e6..3297407e1110 100755 --- a/usr.sbin/bsdinstall/scripts/services +++ b/usr.sbin/bsdinstall/scripts/services @@ -50,13 +50,12 @@ DAEMONS=$(dialog --backtitle "FreeBSD Installer" \ 2>&1 1>&3) exec 3>&- -local havedump= +havedump= for daemon in $DAEMONS; do if [ "$daemon" == "dumpdev" ]; then havedump=1 - echo \# Set dumpdev to \"AUTO\" to enable crash dumps, \ - \"NO\" to disable >> \ - $BSDINSTALL_TMPETC/rc.conf.services + echo '# Set dumpdev to "AUTO" to enable crash dumps, "NO"' \ + 'to disable' >> $BSDINSTALL_TMPETC/rc.conf.services echo dumpdev=\"AUTO\" >> $BSDINSTALL_TMPETC/rc.conf.services continue fi |