I got a new hard drive for my Pro, so before I installed it, I ran the oxnas-revert script. All went as expected.
Now with the new HD in place, when I run oxnas-install.sh it has errors.
First error:
$this->bbcode_second_pass_code('', '# Checking board revision...
./oxnas-install.sh: line 55: syntax error: unexpected "fi" (expecting "then")')
This appears related to the two code sections starting on line 53
$this->bbcode_second_pass_code('', 'if [ "$BOARDVER" = "PPRO1" ]
PCI=1
fi
if [ "$BOARDVER" = "PPROHD1" ]
PCI=1
fi')
Not a huge obstacle, I know I have a Pro and the script reported PPRO1 when it ran, so I just delete that section and change line 52 to read
$this->bbcode_second_pass_code('', 'PCI=1')
Then I run into another snag. After extracting, the script just dumps to the command line. Well, that makes sense, because the code there is:
$this->bbcode_second_pass_code('', ' echo "# Extracting"
tar xzf oxnas-rootfs.tar.gz
exit')
Now, I do not regularly work with scripts, but I tried anyway to see if I could get past this by first deleting
$this->bbcode_second_pass_code('', 'exit')
It then complained about missing or expecting a fi, so I then reasoned that perhaps fi had been meant where there was exit, so I put one in.
After that, the script passed along to the output
$this->bbcode_second_pass_code('', '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Extraction FAILED or WRONG rootfs"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"')
no matter what further I did, so I tried to manually go through the steps, copying out of the script. When I tried
$this->bbcode_second_pass_code('', 'tar xzf oxnas-rootfs.tar.gz')
It said no such file, blah blah blah, so I ran
$this->bbcode_second_pass_code('', 'tar xzf /tmp/usb/oxnas-rootfs.tar.gz')
At that point extraction failed partway through reporting there was no free disk space left.
And now I am here.