Commit Graph

70 Commits

Author SHA1 Message Date
cimryan
749de01c97 Allow skipping the package upgrade. 2018-11-03 21:31:58 -07:00
cimryan
2f504c8637 Move the upgrade to the end of setup.
Upgrading will update the kernel, which will require reboot. In particular, cifs mounting won't work until the reboot.
2018-11-03 19:43:02 -07:00
cimryan
7b31410802 Elminate redundant update in make-root-fs-readonly 2018-11-03 18:38:58 -07:00
cimryan
06687c3549 Upgrade packages during setup. 2018-11-03 18:38:38 -07:00
cimryan
820d224c28 Put the declaration of setup_progress before its first use. 2018-11-03 18:34:11 -07:00
cimryan
2a463ba40b Move installation of the CIFS package to run/cifs_archive/configure-archive.sh
Don't need hping3 for other systems.

Keep the reconfiguration of the packages that is done specifically for making the root file system read-only in make-root-fs-readonly.sh.
2018-11-03 17:43:35 -07:00
cimryan
2eec8864c8 Testing for archive reachability is different for each archive system, but necessary for all systems. 2018-11-03 17:31:28 -07:00
Cisien
fdbc659527 switch to using hping3 for connectivity testing/ip resolution 2018-11-03 16:30:46 -07:00
cimryan
f0b6cae2ea Pass --fail to curl
Ensure that the setup process will stop early if a script can't be retreived.
2018-11-03 10:44:29 -07:00
cimryan
9c37d42b4d Export declarations used in verify-configuration.s 2018-11-03 10:41:33 -07:00
cimryan
aa8e9adbee Configure archiving by default as part of the setup-teslausb script, but make it possible to skip. 2018-11-03 10:11:16 -07:00
cimryan
fe7ab50ab1 Extract verify-configuration.sh from setup-teslausb 2018-11-02 22:44:28 -07:00
cimryan
bab44a79b7 Split the implementation of check_and_configure_pushover into separate check and configure steps. 2018-11-02 22:04:31 -07:00
cimryan
1099f8ada8 hygiene. 2018-11-02 21:41:59 -07:00
cimryan
b9efb5006f Express stage 2 progress in terms of the process rather than the implementation. 2018-11-02 19:52:26 -07:00
cimryan
efdab38530 Move the verification of the available space just after the verification of the variables. 2018-11-02 19:47:29 -07:00
Ray Tanaka
fd7be5871b bug fix - INSTALL_DIR was not getting propagated to child script 2018-11-02 15:39:13 -07:00
Ray Tanaka
aefdb082d0 refactoring to add back write configs script 2018-11-02 15:24:25 -07:00
Ray Tanaka
d758757839 remove command line support and corresponding debugs 2018-11-02 12:25:10 -07:00
Ray Tanaka
0d682af4bf let's clean up after ourselves 2018-10-31 03:27:26 -07:00
Ray Tanaka
736b960eb7 Merge remote-tracking branch 'upstream/master' 2018-10-31 02:36:20 -07:00
Ray Tanaka
6dc1b79813 bug fix - removing resolv.conf causes dns errors until you reboot. this is safer. 2018-10-31 02:07:18 -07:00
Ray Tanaka
b93550e4de splitting up usb configuration from script and archive configuration / installation. this will allow a user to run configuration multiple times. 2018-10-31 01:42:25 -07:00
Ray Tanaka
5e2b081246 only move fake-hwclock.data if it's not already a symlink
take out rclone specific logic out of here and move into rclone_archive
2018-10-31 00:25:45 -07:00
cimryan
74808c9541 Make setup_logfile local to setup_progress 2018-10-30 15:36:18 -07:00
cimryan
0588442962 Remove extra declaration and initialization of SETUP_LOGFILE 2018-10-30 15:35:00 -07:00
cimryan
f8241bbbba Make setup_logfile and headless_setup local to setup_progress 2018-10-30 15:30:49 -07:00
cimryan
5443c0a607 Remove vestigial LAST_BACKINGFILES_PARTITION_BYTE variable 2018-10-30 15:25:19 -07:00
Richard Goodwin
215556acc8 Make HEADLESS variable check local 2018-10-30 15:31:27 -05:00
Richard Goodwin
9e5324f327 Missed a default variable setting
I hate this whole unbound variable protection mode, but it sure does catch bugs. :)
2018-10-30 15:18:23 -05:00
Richard Goodwin
0f8c380f54 trying BACKINGFILES_PARTITION_END_SPEC 2018-10-30 14:51:12 -05:00
Richard Goodwin
e3230483bc Add -s to another parted line 2018-10-30 08:59:57 -05:00
Richard Goodwin
14d1e52a9f Clearer logging message 2018-10-30 08:38:28 -05:00
Richard Goodwin
331721c742 Pass script flag to parted 2018-10-30 08:23:24 -05:00
Richard Goodwin
6201dd91ef More logging in partition creation 2018-10-30 08:15:19 -05:00
Ray Tanaka
fc1568db61 fixing cifs issue with my last change and reordering so we don't need a separate credential file 2018-10-29 23:59:04 -07:00
Ray Tanaka
ef523f542d making changes to reflect upstream changes 2018-10-29 22:56:11 -07:00
Ray Tanaka
0e016fb176 had a debug echo in there -- making it a log message instead 2018-10-29 22:54:29 -07:00
Ray Tanaka
c54c5c26c3 fixing typo 2018-10-29 22:54:29 -07:00
Ray Tanaka
e543363009 clean up the archive server set up routine 2018-10-29 22:54:29 -07:00
cimryan
969d8a4f0e Merge branch 'u/rtgoodwin/headless-patch' into headless-patch 2018-10-28 22:44:11 -07:00
cimryan
4e8f065846 Merge branch 'master' into u/rtanaka/rclone_archive 2018-10-28 19:16:21 -07:00
Ray Tanaka
b43e4d709d making change to leverage the new /mutable directory
updating docs for clarification
2018-10-28 10:15:54 -07:00
cimryan
2bd310814c Switch the order of the music and cam backing files in g_mass_storage.conf
This ordering makes the music partition appear in the view in the Tesla.
2018-10-27 09:34:44 -07:00
cimryan
3c7f092419 Merge branch 'u/rtanaka/rclone_archive' of https://github.com/cimryan/teslausb into u/rtanaka/rclone_archive 2018-10-27 08:55:22 -07:00
cimryan
b2111722a7 Create a 100MB "mutable" partition after the backingfiles partition. 2018-10-27 08:54:39 -07:00
cimryan
b45dade31f Merge pull request #65 from rtanaka/rclone_archive
add support for cloud based syncing (e.g. Google Drive) via rclone
2018-10-26 18:05:11 -07:00
Richard Goodwin
965b3533a4 More logging in getting scripts 2018-10-26 12:50:01 -05:00
Richard Goodwin
29466505f7 Now it really is only using LED for setup 2018-10-26 12:15:29 -05:00
Richard Goodwin
6ced0c2c04 Only use LED for headless setup for now 2018-10-26 12:14:29 -05:00