hetzneronline / installimage

Bash scripts to universally deploy various distributions
Other
517 stars 143 forks source link

Various syntax errors when trying to install from a URL #84

Closed anthonator closed 11 months ago

anthonator commented 1 year ago

Whenever we try to install from a URL we see the following issues:

                Hetzner Online GmbH - installimage

  Your server will be installed now, this will take some minutes
             You can abort at any time with CTRL+C ...

         :  Reading configuration                           done 
         :  Loading image file variables                    done 
         :  Loading ubuntu specific functions               done 
   1/17  :  Deleting partitions                             done 
   2/17  :  Test partition size                             done 
   3/17  :  Creating partitions and /etc/fstab              busy /root/.oldroot/nfs/install/functions.sh: line 1930: ((: 23.04: syntax error: invalid arithmetic operator (error token is ".04")
/root/.oldroot/nfs/install/functions.sh: line 1922: [: 23.04: integer expression expected
/root/.oldroot/nfs/install/functions.sh: line 1930: ((: 23.04: syntax error: invalid arithmetic operator (error token is ".04")
                                                            done 
   4/17  :  Creating software RAID level 1                  busy /root/.oldroot/nfs/install/functions.sh: line 2256: [: 23.04: integer expression expected
/root/.oldroot/nfs/install/functions.sh: line 2263: [: 23.04: integer expression expected
                                                            done 
   5/17  :  Formatting partitions
         :    formatting /dev/md/0 with swap                done 
         :    formatting /dev/md/1 with ext3                done 
         :    formatting /dev/md/2 with ext4                done 
   6/17  :  Mounting partitions                             done 
   7/17  :  Sync time via ntp                               done 
   8/17  :  Downloading image (http)                        done 
         :  Importing public key for image validation       done 
   9/17  :  Validating image before starting extraction     warn 
         :  No detached signature file found!
  10/17  :  Extracting image (http)                         done 
  11/17  :  Setting up network config                       busy /root/.oldroot/nfs/install/network_config.functions.sh: line 797: ((: 23.04: syntax error: invalid arithmetic operator (error token is ".04")
/root/.oldroot/nfs/install/network_config.functions.sh: line 528: /installimage.QHrZ6/hdd/etc/network/interfaces: No such file or directory
                                                            done 
  12/17  :  Executing additional commands
         :    Setting hostname                              busy /root/.oldroot/nfs/install/functions.sh: line 3017: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3018: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3020: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3022: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3023: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3024: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3025: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3026: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3027: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
/root/.oldroot/nfs/install/functions.sh: line 3029: /installimage.QHrZ6/hdd/etc/hosts: No such file or directory
                                                            done 
         :    Generating new SSH keys                       done 
         :    Generating mdadm config                       busy sed: can't read /installimage.QHrZ6/hdd/etc/default/mdadm: No such file or directory
sed: can't read /installimage.QHrZ6/hdd/etc/default/mdadm: No such file or directory
sed: can't read /installimage.QHrZ6/hdd/etc/default/mdadm: No such file or directory
sed: can't read /installimage.QHrZ6/hdd/etc/default/mdadm: No such file or directory
                                                           failed
anthonator commented 1 year ago

This might be related to https://github.com/hetzneronline/installimage/pull/65.

asciiprod commented 11 months ago

Your image likely does not follow the correct nameing scheme.

https://docs.hetzner.com/robot/dedicated-server/operating-systems/installing-custom-images/#install-older-linux-images-using-the-installimage-script