Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
810 stars 187 forks source link

Can't get HTTP/WGET boot time configuration download working #437

Closed xenorites closed 5 years ago

xenorites commented 5 years ago

I'm sure I am doing something wrong, but I can't figure it out. No matter what I do, on boot it attempts to retreive the boot time configurations from the tftp server (presumably via http, but I can't confirm). It seems to ignore the baseurl parameter.

Here is my build.conf:

machine Probook355g2

package xorg7-vesa

package netfiles
package udisks
package automount
package autonet
package ntp
package alsa
package cpufreq

package locale-en_US
package locale-es_ES

package esl-certs

package wget
package freerdp
package xterm
package dillo
package openbox
package gtk-2.0
package gtk-3.0
package gtk-theme-adwaita
package icons-cursor
package icons-hicolor
package icons-adwaita
package fonts-TTF-BH
package fonts-TTF-vera

package fonts-TTF-liberation
package fonts-TTF-noto

param fastboot       false

param tsuser            tsuser
param tsuserpasswd      TS4dzzJLCou7LXNya3caH

param rootpasswd        TS4dzzJLCou7LXNya3caH

param tsadminpasswd     TS4dzzJLCou7LXNya3caH
param xorgvncpasswd     TS4dzzJLCou7LXNya3caH
param storagepasswd     TS4dzzJLCou7LXNya3caH
param dialuppasswd      TS4dzzJLCou7LXNya3caH
param sambapasswd       TS4dzzJLCou7LXNya3caH

param bootlogo       true
param boottheme      default

param splash         silent
param fbmtrr         0

param fbsm           ywrap

param bootresolution 1366x768-32

param desktop file:./backgrounds/Hive_Lite.jpg
param defaultconfig  thinstation.conf.buildtime

param basename       thinstation
param basepath       thinstation
param baseurl        http://thinstation.domain.com

param haltonerror    false
param hardlinkfs     true
param sametimestmp   true
param initrdcmd      "gzip"
param bootverbosity   3

param downloads         /downloads
param bootimages        "pxe"
param bootserver        "thinstation.domain.com"

param syslinuxtheme     "default"

package alltimezone
param allres            true
param earlymicrocode    false

param blacklist snd-pcsp.ko

and thinstation.conf.buildtime:

AUDIO_LEVEL=90
MIC_LEVEL=0
SESSION_0_TYPE=openbox
SESSION_0_AUTOSTART=on
PANEL_PAGER=false
PANEL_USER=false
PANEL_REV_CLOCKSYSTRAY=true
ICONS_THEME="Adwaita"
ICONS_CUT_SIZES="256x256 scalable"
NET_USE=BOTH
NET_USE_DHCP=on
NET_HOSTNAME=ts_*
NET_TELNETD_ENABLED=ON
TIME_ZONE=America/Denver
NET_TIME_SERVER=172.27.10.1
NET_REMOTE_ACCESS_FROM="0.0.0.0"
TFTP_BLOCKSIZE=1024
BIND_MOUNT0="storage:/mnt/storage"
STORAGE_CONFIG1=/mnt/storage
USB_STORAGE_SYNC=on
LOCALE=en_US
MOUNT_0="LABEL=boot     /boot           auto    x-mount.mkdir,defaults  0       0"
MOUNT_1="LABEL=home     /root           auto    x-mount.mkdir,defaults  0       0"
MOUNT_2="LABEL=swap     swap            swap    defaults        0       0"
SET_RESOLUTION_MULTIMONITOR_EXPAND='mirror'
SET_RESOLUTION_MULTIMONITOR_AUTOSCALE='scale'
NET_FILE_ENABLED=On
NET_FILE_METHOD=http
BASEURL="http://thinstation.domain.com"

Here's hoping I'm being stupid... Thanks in advanced for any assistance!

Edit: It's worth pointing out that I have tried setting NET_FILE_METHOD to both wget and http.

Just realized I can confirm if it's even attempting to use http/wget at all to retrieve the files via the logs, and I see it hitting the TFTP server, not the HTTP server on that boot machine. It seems to be ignoring the NET_FILES_METHOD parameter as well.

xenorites commented 5 years ago

I'm still not sure what, but I was doing something wrong, and ThinStation is now properly attempting to retrieve files from the specified webserver. It does still attempt to tftp the boot server, but it now is also hitting the webserver and pulling the config. If I figure out what I did/what changed I will post here.