Unable to install when disk device model contains a quote character
-
Hello,
I would like to report a problem I encountered while attempting to install the newest version of pfSense Community edition on a x86_64 device having an innodisk 2.5" SATA SSD 3ME3. The tldr; is that the installer breaks when the HDD device model name contains a quote character. The symptoms are repeated bash error messages which get printed by the installer after selecting the filesystem and partition layout and before the block device is selected:
/tmp/tmp.JirvDpfh2C: 7: Syntax error: Unterminated quoted string /tmp/tmp.UFtRDOb72d: 7: Syntax error: Unterminated quoted string /tmp/tmp.xZyGsqkUE6: 7: Syntax error: Unterminated quoted string /tmp/tmp.6VYt7hw7vm: 7: Syntax error: Unterminated quoted string /tmp/tmp.eJjNz3A74C: 7: Syntax error: Unterminated quoted string /tmp/tmp.nWnrmoJD66: 7: Syntax error: Unterminated quoted string /tmp/tmp.lYiJXFX9fk: 7: Syntax error: Unterminated quoted string /tmp/tmp.XWEU8dSwDW: 7: Syntax error: Unterminated quoted string /tmp/tmp.txoX2hD8do: 7: Syntax error: Unterminated quoted string /tmp/tmp.Lwdw5qIDnk: 7: Syntax error: Unterminated quoted string /tmp/tmp.e9oNZ8xnQO: 7: Syntax error: Unterminated quoted string /tmp/tmp.LrKpBGALT3: 7: Syntax error: Unterminated quoted string /tmp/tmp.981W3YCzjo: 7: Syntax error: Unterminated quoted string /tmp/tmp.LuSttLNfdr: 7: Syntax error: Unterminated quoted string /tmp/tmp.k3ZWx1JT75: 7: Syntax error: Unterminated quoted string /tmp/tmp.3RoFe3QemG: 7: Syntax error: Unterminated quoted string /tmp/tmp.HJp4WHIvx6: 7: Syntax error: Unterminated quoted string /tmp/tmp.Bc1ps7Dk9C: 7: Syntax error: Unterminated quoted string /tmp/tmp.o05ldXaEep: 7: Syntax error: Unterminated quoted string /tmp/tmp.BH51pxzX8G: 7: Syntax error: Unterminated quoted string /tmp/tmp.2eGxxW2sZ8: 7: Syntax error: Unterminated quoted string /tmp/tmp.RAeKL5XhPM: 7: Syntax error: Unterminated quoted string /tmp/tmp.uAi8UbLJtC: 7: Syntax error: Unterminated quoted string /tmp/tmp.yFF3DsmCFw: 7: Syntax error: Unterminated quoted string /tmp/tmp.bxyXOU9IIv: 7: Syntax error: Unterminated quoted string /tmp/tmp.nFgl9avEJe: 7: Syntax error: Unterminated quoted string /tmp/tmp.Ww7kmxzwIt: 7: Syntax error: Unterminated quoted string /tmp/tmp.qVrTsN7bwW: 7: Syntax error: Unterminated quoted string /tmp/tmp.xiTdUXcVLo: 7: Syntax error: Unterminated quoted string /tmp/tmp.0ILA0L3xCQ: 7: Syntax error: Unterminated quoted string /tmp/tmp.to9JI9OmNW: 7: Syntax error: Unterminated quoted stringThese messages continue indefinitely until the installer is aborted with ^C. After aborting one of the failing scripts can be viewed in /tmp:
root@pfSense-installer:~ # ls -l /tmp/ total 8 drwxrwxrwt 2 root wheel 0 Dec 29 13:39 .ICE-unix drwxrwxrwt 2 root wheel 0 Dec 29 13:39 .X11-unix drwxrwxrwt 2 root wheel 0 Dec 29 13:39 .XIM-unix drwxrwxrwt 2 root wheel 0 Dec 29 13:39 .font-unix -rw-rw-r-- 1 installer installer 0 Dec 29 13:39 install-log.txt drwxr-xr-x 2 root wheel 0 Dec 29 13:39 mnt_recovery drwxr-xr-x 2 root wheel 0 Dec 29 13:39 recovered_config -rw------- 1 root wheel 0 Dec 29 13:42 tmp.CZ6lyBt5gU -rw------- 1 root wheel 312 Dec 29 13:43 tmp.Sgq9M4QXP2 -rw------- 1 root wheel 0 Dec 29 13:46 tmp.qLdd8Tt9ik -rw------- 1 root wheel 399 Dec 29 13:46 tmp.ttbqILjF8z root@pfSense-installer:~ # cat /tmp/tmp.ttbqILjF8z #!/bin/sh [ "${#}" -ne 1 ] && exit 1 OUTFILE="${1}" "/usr/bin/bsddialog" --backtitle "Netgate Installer - v1.1.1-RELEASE" --title " Disk Selection " --colors --separate-output "--checklist" "\nSelect the disk(s) for software installation.\n" --extra-button --extra-label "Advanced Options" 0 0 0 \ "ada0" "30G <2.5"SATA SSD 3ME3>" "on" \ 2> "${OUTFILE}" ERROR="${?}" exit "${ERROR}"One of the arguments provided to bsddialog has a quote character inside which trips up bash. Why is the quote there? Well, as it turns out the SSD device model name contains a quote character. This can be seen before in the kernel messages, an excerpt is below:
ada0 at ahcich1 bus 0 scbus0 target 0 lun 0 ada0: <2.5" SATA SSD 3ME3 S17411> ATA8-ACS SATA 3.x device ada0: Serial Number BCA11803281290119 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 30533MB (62533296 512 byte sectors)The installer affected has been downloaded from the link received in the post-checkout e-mail message:
Netgate Installer - AMD64 Memstick USB (Intel x64 Netgate appliances) netgate-installer-v1.1.1-RELEASE-amd64.img.gz Download Link: https://shop.netgate.com/a/downloads/-/a8e221ab21024ee3/7e27dc969ae6a5e5I have replaced the SSD with a different one which does not have a quote character in the model name and the installation went smoothly.
Thank you for building and supporting pfSense! It is rock solid and a pleasure to work with!
-
Huh. That's a fun* bug. Should be easy enough to fix at least
-
@stephenw10
Any ETA on a fix for this? The current 1.1.1 installer threw the error for me today. Trying to reinstall a box that had a drive failure and using Samsung PM841 drives. -
It's fixed in the upcoming 1.2 version which should be available very soon now. You may be able to get a dev version of that to test if you contact TAC.
-
@stephenw10 said in Unable to install when disk device model contains a quote character:
It's fixed in the upcoming 1.2 version which should be available very soon now. You may be able to get a dev version of that to test if you contact TAC.
I opened a ticket (#43350730012) on the 11th. Support still hasn't made a single reply to it yet.
-
@ws6 said in Unable to install when disk device model contains a quote character:
I opened a ticket (#43350730012) on the 11th. Support still hasn't made a single reply to it yet.
Hmm, I'm sorry let me see what's up there.....
-
Hmm, odd, it looks like we first replied ~2hrs after you opened the ticket on the 12th (GMT). I assume you didn't get that for some reason?
But it looks like you now have a dev image to test. The most recent version should have the fix for this.
-
@stephenw10
the dev is throwing a different error at the same spot: 7: Syntax error: "(" unexpectedsorry for the cell phone pic but the system i am running this on does not have a serial connection. using the local keyboard and mouse

-
Hmm. OK if you can upload that to TAC via the nextcloud link they shared they will be able to get to the developer.
-
@stephenw10 So i am having same install issues as the previous two people above. I am trying to install on an Innodisk 3MG2-P SSD.
Same error during install: 7: Syntax Error: "(" unexpected
How was this mitigated to be able to proceed further?
-
This post is deleted! -
Forgot to add, I am on version 1.2 downloaded .img yesterday.
-
Hmm, how does the drive appear at boot? Same unexpected characters in the model description?
-
@stephenw10 its essentially the same exact disk the OP had. I had to switch drives out too. Something about the hardware description having 2.5 "... we are not the only three folks who have had this issue.
-
So only the
"character? Let me see what I can find. I thought that was fixed in 1.2 but.... -
@stephenw10
I want to bump this issue. I've tried installing (several times) pfsense CE 2.8.1 on bog-standard Intel-based devices, and received the same syntax errors noted by the OP. I tried looking it up on redmine, but I couldn't find any related content. I'm a bit concerned that an uninstallable version of the software has been the only thing available for so long. I've been forced to switch to opnsense twice over the last few weeks. I'd rather use pfsense, but this issue appears to persist. -
@EveningStarNM I have no helpful info but: can you add the exact model of the disk you are useing? Any chance you can try with a different model? And are you using the latest Netgate installer 1.2? Does installing 2.7.2 and upgrading work (if you really want to install pfSense)?
-
Still trying to track down a drive that triggers this....
Privacy Policy · Cookie Policy