Franco Fichtner
d26c77a1ea
rc: same fix for /tmp MFS
...
If users want read-only media they need to put their own
/etc/fstab entries into the system as the MFS options from
the config should not work under unknown conditions.
2018-01-15 21:59:59 +01:00
Franco Fichtner
39a22b7066
rc: we are stuck with these workarounds forever
2018-01-15 18:05:21 +01:00
Franco Fichtner
eaffc0edc4
rc: prevent /var MFS transition on install media after import
2018-01-15 17:30:59 +01:00
Franco Fichtner
d0cb477281
rc: mount /boot in live mode to make opnsense package update possible
2018-01-08 07:38:53 +01:00
Franco Fichtner
2b4787453a
rc: thin out the etc/ directory a bit by stashing boot scripts away
2017-09-22 19:10:36 +02:00
Franco Fichtner
93c40a5e93
rc: refactor /var handling, get MFS dirs from rc vars
...
This works regardless of enabled state, as long as the plugin is
installed the directories are transitioned (makes sense for temporary
disabling of services).
PR: https://forum.opnsense.org/index.php?topic=5987.0
2017-09-19 08:33:42 +02:00
Franco Fichtner
47ad0f7f9c
rc: clear /var/run on bootup; closes #1799
2017-09-04 09:18:34 +02:00
Franco Fichtner
f6804ba093
rc: ensure the directory exists
2017-08-31 08:20:03 +02:00
Franco Fichtner
6da1836636
rc: root file system print, closes #1408
2017-07-23 16:03:26 +02:00
Franco Fichtner
77401d6add
system: add optional swap file for SSD; closes #1554
2017-07-11 15:31:37 +02:00
Franco Fichtner
335b591dae
rc: advertise live mode just above the login prompt
2017-05-29 08:04:14 +02:00
Franco Fichtner
93d68f77d7
rc: not as bad as first thought, rc.recover runs without backend
2017-05-25 12:23:36 +02:00
Franco Fichtner
ed66e8728d
rc: properly create php template on first boot
...
rc.recover doesn't work like that then, need to move to /bin/sh.
PR: https://forum.opnsense.org/index.php?topic=5213.0
2017-05-24 20:28:46 +02:00
Franco Fichtner
f3ed9ca3bc
rc: also clear the IP cache files
2017-05-15 06:57:33 +02:00
Franco Fichtner
c1f018b137
rc: clear the name cache files, no reason not to
2017-05-14 08:37:05 +02:00
Franco Fichtner
45e043b103
rc: use rc.syshook for some for our important tasks
2017-05-09 08:10:10 +02:00
Franco Fichtner
9c88e64134
system: always use reload except for deferred startup
...
PR: https://forum.opnsense.org/index.php?topic=5140.0
2017-05-09 07:49:27 +02:00
Franco Fichtner
b2ea63317e
beep: move beep to syshook (mostly)
2017-05-09 07:18:56 +02:00
Franco Fichtner
3386053709
webgui: clean up after rework
2017-05-04 16:59:51 +02:00
Ad Schellevis
7596738104
CARP, add option "Disable preempt", move preempt to later boot stage. for https://github.com/opnsense/core/issues/1557
2017-05-01 20:25:40 +02:00
Franco Fichtner
66de2bde0e
rc: exlude the old use_mfs_tmp_size / use_mfs_var_size options; closes #1485
2017-03-19 20:30:32 +01:00
Franco Fichtner
e134f0e4f3
rc: trap CTRL-C for importer, exit gracefully for resuming boot
2017-03-05 16:06:15 +01:00
Franco Fichtner
156f8d445f
system: add captive portal session backup #1437
2017-03-02 20:14:31 +01:00
Franco Fichtner
c4ec7689e8
rc: allow use of importer anytime, add conveniance aliases
2017-03-01 06:30:32 +01:00
Franco Fichtner
ce32fb747b
rc: move importer to very early spot, add timeout #1372
2017-02-27 09:15:35 +01:00
Franco Fichtner
21b84ed2a8
rc: openssl.cnf is a sample file now via upstream
2017-02-26 23:20:36 +01:00
Franco Fichtner
9eeca3405b
rc: always restore native /var layout on boot
2017-01-19 15:10:05 +01:00
Franco Fichtner
d9e3f6a26d
rc: better cron start print style and start it later
2016-12-09 15:22:58 +01:00
Franco Fichtner
47adafb0ff
rc: run recover prior to resize
2016-12-03 13:08:45 +01:00
Franco Fichtner
46fc7fe3aa
rc: makefs -> mkimg migration seems to fix this, yay!
2016-12-02 10:23:58 +01:00
Franco Fichtner
9a15a68f2f
rc: allow growfs on new nano images
...
This is a bit tricky, because there is a bug where UFS labels
disappear. For now, clobber /etc/fstab to make sure the next
boot goes as planned.
2016-12-02 08:58:06 +01:00
Franco Fichtner
e413994c4a
system: finally split up use_mfs_tmpvar for good
...
This is an inplace config migration. The mount still behaves
the same way and a config save from the page migrates the
options. We're not in a rush here, but the reason is that
we should have clean options and the new 17.1 images for nano
will depend on the new style.
2016-12-02 08:18:23 +01:00
Franco Fichtner
53ee7f5734
rc: pkg-static spams about major upgrade warning...
...
... but we already know that because we are performing one.
2016-11-30 07:32:14 +01:00
Franco Fichtner
e6e85ce70c
rc: finally deal with message of the day
...
Content follows, for now just use the sweet template Framework
to get this party started.
We're using "motd.in" so allow replacement during package builds.
2016-10-29 08:23:19 +02:00
Franco Fichtner
96b8cbe2a5
rc: run through more static updates before applying updates
2016-10-14 17:01:08 +02:00
Franco Fichtner
6d8de7056b
rc: generate package user/group data after updates
2016-10-07 19:12:04 +02:00
Franco Fichtner
2d2df02658
rc: use blocking reboot here, no need for extra output
2016-10-04 16:21:22 +02:00
Franco Fichtner
9f315cec93
rc: update glue for upcoming major updates
2016-08-18 09:00:06 +02:00
Franco Fichtner
557e72712b
rc: clean up a bit after #1072
...
o Recovery console is weird, just use CTRL-C from anywhere
o Simplify the early installer invoke by probing for keypress
o Display a brief message when installer+SSH is active
2016-08-09 07:58:49 +02:00
Franco Fichtner
8ea003a058
rc: set up additional partition for installer logs
2016-08-08 18:39:16 +02:00
Franco Fichtner
51b04e9b0a
rc: allow /var/cache/pkg on MFS (support in pkg 1.8)
2016-07-23 07:29:53 +02:00
Franco Fichtner
67e49aba45
rc: enable TRIM for GPT/UFS labels too; closes #1055
2016-07-11 23:22:42 +02:00
Franco Fichtner
3ba65be59b
system: allow /tmp to optionally function as a tmpfs; closes #1036
2016-07-02 10:07:04 +02:00
Franco Fichtner
58b68c9c45
pkg: don't back up db, it seems to forget things
2016-07-01 15:33:54 +02:00
Franco Fichtner
0273d26510
rc: on second thought, always run twice
...
mount(8) will mount an unclean root fs, so if we get into a
mount issue after having run fsck twice first time in the loop
the next iteration will fix the system, but may not mark it clean.
Avoid that by always invoking fsck twice, for better or worse.
2016-06-22 16:30:56 +02:00
Franco Fichtner
80dc8457bc
rc: always force an fsck after unclean shutdown
2016-06-22 16:12:17 +02:00
Franco Fichtner
ae7f000835
cron: migrate away from minicron usage
2016-06-06 12:52:56 +02:00
Franco Fichtner
409a032cc0
rc: fix /var MFS for crontab entries
2016-06-01 09:36:05 +02:00
Franco Fichtner
2053bd010b
rc: php must be ready before configd because it may use it
...
Also remove the captive portal RRD graph removal. We really need
to improve the GUI in order to solve the issue of stale RRD files
gracefully.
2016-05-27 06:59:41 +02:00
Franco Fichtner
a6132af6e4
rc: start to dump and restore package dabase
...
PR: https://forum.opnsense.org/index.php?topic=3082.0
2016-05-27 00:34:40 +02:00