Installer failed to mount update file

Description

In the script there is a hardcoded /cdrom mount
https://github.com/truenas/truenas-installer/blob/c3936a9a68ce6579b77a87e4d118f405b47cc001/usr/sbin/truenas-install#L871

But some installations are done through virtual media of some sort.
In this case the media was at /dev/sr0 and failed to mount the .update file

I had to manually mount :
mount /media/sr0 /dev/sr0
mount /media/sr0/TrueNAS-SCALE.update /mnt -t squashfs -o loop

Problem/Justification

None

Impact

None

Activity

Show:

Marc Hagen March 2, 2022 at 11:10 AM

I have tested e VM install, works
Texted with a dedicated server with USB works, virtual media mount also worked.
So seems that it was a issue with the beta installer (noticed the linked issue and changes in the PR)
I didn’t test a hetzner server but I imagine it’s works too.

For me seems to be fixed

Vladimir Vinogradenko March 2, 2022 at 9:52 AM

does using TrueNAS SCALE 22.02.0 image resolve this issue?

Ryan Moeller March 2, 2022 at 12:02 AM

Vlad, can you think of a reason /cdrom would not be mounted in the installer? I don't see that happening in this script, so I guess it's happening somewhere else you've worked on.

Marc Hagen March 1, 2022 at 11:21 PM

Fact is that the installer didn't work. I had a USB stick with the ISO on it.
It failed to mount the TrueNAS-SCALE.update because it could not find it at that time. I've rebooted 3x times, then resorted to the internet (which didn't do anything for me).
Then manual poked around in the booted installer with shell.

It should be that hard to install from a USB right? The server is a Hetzner server, these are already a special kinda.
4x 10TB, 1x 16GB USB (os/boot) + 1x installer USB

I known after poking in the shell, the USB was not mounted as /cdrom , else we wouldn't have this ticket, and i saw in the Github this line :: https://github.com/truenas/truenas-installer/blob/c3936a9a68ce6579b77a87e4d118f405b47cc001/usr/sbin/truenas-install#L871

Which ultimately resulted to the solution above and a working install.

I would love to setup another Hetzner server again to poke around more but, well money (and they don't have unlimited KVM time)
Yet in a proxmox VM the installer works great, and i can check with a normal server (HP DL360) at work if the USB install works (i think it will)

Ryan Moeller March 1, 2022 at 10:22 PM

I expect you've got your system set up and running by now and won't remember the exact error message so I'm closing the ticket. If you do feel like booting into the installer again and taking screenshots of the errors for this ticket we can reopen it and continue investigation. Thank you!

Duplicate
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created February 21, 2022 at 10:15 PM
Updated July 6, 2022 at 9:01 PM
Resolved March 2, 2022 at 11:22 AM