rbgarga
1a8b561c11
Merge pull request #608 from evansus/master
...
Merge commit to correct debugging issue
2013-04-30 09:58:01 -07:00
Evan Susarret
b030743597
correct debug issue
...
Accidentally changed this from executing the zfs command to echoing the
expected command in previous commits.
This had been set while debugging a better command to set ZFSROOT
variable.
2013-04-30 11:53:26 -04:00
rbgarga
0d0cda1879
Merge pull request #602 from evansus/patch-1
...
ZFSROOT not hardcoded to zpool or dataset 'tank'
2013-04-30 08:32:48 -07:00
Ermal
ac62a50d9b
Do not force the check to avoid garbling filesystems. Also be specific to check / filesystem and /cf on nano platform since the others will be checked on php code
2013-04-29 08:46:10 +00:00
Evan Susarret
c56caf594b
Use 'zfs mount' to get ZFSROOT dataset
...
using just zfs, grep, and cut, with a simple regexp
2013-04-28 06:43:17 -04:00
Evan Susarret
98304a9268
ZFSROOT not hardcoded to zpool or dataset 'tank'
...
For ZFS root readonly case, the WHEREISROOT variable was grep-ing for 'tank', expecting a zpool with that name.
A workaround of naming a dataset 'tank', for example, 'sys/ROOT/tank' or 'sys/tank/pfSense' is compatible, however this shouldn't be hardcoded in.
My proposed change replaces WHEREISROOT with ZFSROOT using awk. I noticed awk is used elsewhere in this script. However it is still simple code that is not resilient against unexpected circumstances, let alone failure.
2013-04-24 06:18:21 -03:00
jim-p
b6a63312b1
Don't try to make /var/run a RAM disk if /var is already a RAM disk.
2013-04-08 13:34:14 -04:00
Renato Botelho
730790dd97
Only check tunefs status when it's necessary, it avoids errors on iso boot. Fixes #2932
2013-04-05 15:25:42 -03:00
jim-p
efc0e29abc
Move tmp/var init to just after mount of /cf so that the sizing works properly on NanoBSD. Fix input validation for sizes. Add note about needing a reboot to apply the settings.
2013-03-12 13:59:40 -04:00
jim-p
e92e83d4e2
Add the ability for full installs to optionally use RAM disks for /tmp and /var, and to allow selecting a size for /tmp and /var RAM disks on both Full installs and NanoBSD.
...
I think I caught most of the edge cases for transitioning into and out of RAM disk mode, and preserving data across reboots as is done on NanoBSD (RRD, DHCP leases, pkg/pbi info).
2013-03-11 22:16:18 -04:00
jim-p
990fa101b6
Add a means to force a fsck (on rare occasions the fs is not marked dirty, but still needs fsck run to fix errors)
2013-02-02 21:36:39 -05:00
jim-p
2085c6de5d
Add a manual way for someone to set TRIM if they really want it. touch /root/TRIM_set and reboot to set, touch /root/TRIM_unset to clear.
...
Have to reboot after setting the tunefs flag or when mount is run, it clears any changes. No way to do it on the fly.
2013-02-02 21:30:31 -05:00
Ermal
24450773ae
Cleanup the php session data.
2012-12-06 15:55:17 +00:00
Ermal
080b4ce1b5
Create these dirs earlier rather than later to avoid the errors reported on http://forum.pfsense.org/index.php/topic,55998.0.html
2012-11-22 09:17:36 +00:00
Ermal
7d3be92f49
Honor /var/run path specified in globals.inc. Probably this needs a bit better handling
2012-11-20 16:42:35 +00:00
Ermal
775130e706
Remove openvpn setups since they do not belong here. Also check before removing newsyslog.conf
2012-11-20 16:34:37 +00:00
Ermal
4b1497d02c
Remove sasyncd related code from rc
2012-11-20 16:26:37 +00:00
Ermal
12aeb58f1b
Remove newsyslog.conf seems its responsible for overrideing ppp.log and gives warnings on bootup
2012-11-20 16:26:06 +00:00
Ermal
9e9bc51c32
Remove all previous configurations stored on /var/etc during a bootup to avoid confusion
2012-11-20 16:22:17 +00:00
smos
2f8782fe42
More validation for ejecting CDrom devices for 3G sticks, needs extra manufacturers. Less typos in variable names also helps a lot.
2012-05-26 09:28:42 +02:00
smos
793d3c961d
Attempt to Eject the CD device on 3G sticks for Huawei and ZTE devices.
2012-05-20 20:01:39 +02:00
jim-p
e0c45357b2
Move routing (radvd, routed, ospf, bgp) to its own log since these daemons can be really spammy at times.
2012-05-01 16:00:10 -04:00
Phil Davis
152c18f002
Store PBIs in /root/var/db/pbi so they persist across reboots.
...
Keep the existing code for old-style PKG packages in case users on 2.1 are doing anything with PKG packages by hand. In theory all proper package installs on pfSense 2.1 (FreeBSD 8.3) should use PBIs.
2012-04-18 12:14:27 +05:45
smos
e0977fed0f
Move some of the log file tabs around.
...
Add seperate tabs for dnsmasq,unbound as well as gateways.
2012-03-29 12:20:03 +02:00
Warren Baker
71bdd22613
Rather make use of grep -c than all these pipes
2012-03-13 15:00:58 +02:00
Ermal
973b2663e4
Simplify this code a little and make it easily extendible.
2012-03-12 10:55:26 +00:00
Ermal
06fd1952d3
check for presense of file before trying to exec it
2012-03-12 10:34:29 +00:00
Ermal
e8197e56f3
Do not wipe logs on reboot on full install
2012-03-12 10:32:57 +00:00
jim-p
92ac3b3d45
Add a small script to disable APM on ATA drives if they claim to support it. Leaving this on will kill drives long-term, especially laptop drives, by generating excessive Load Cycles.
...
The APM bit set will persist until the drive is power cycled, so it's necessary to run on each boot to be sure.
2012-01-30 16:24:58 -05:00
jim-p
b3e15d1ba9
Add missing s
2011-09-30 20:04:34 -04:00
jim-p
689eaa4dc6
Move hostapd to its own log and tab, so it stops spamming the system log.
2011-09-30 19:57:43 -04:00
Andrew Thompson
7734aea648
Make initial changes to allow pfSense to work in a jail.
...
This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.
2011-08-17 14:15:18 +12:00
jim-p
0165616618
Run on CD-ROM, too, it should be writable after rc.cdrom
2011-07-25 11:01:15 -04:00
jim-p
ca3537ba31
Sync password database right after mount, in case it is corrupt. (Except on CD-ROM platform).
2011-07-25 10:58:21 -04:00
Scott Ullrich
aa840cf9f1
Redirect errors to file
2011-07-17 19:55:11 -04:00
Ermal
01599e5e95
Remove nohup from the calling for check_reload_status since it may cause issues to the processes that get forked from it.
2011-06-24 19:05:58 +00:00
Scott Ullrich
490615d3bc
Add custom boot early hook
2011-06-21 12:08:15 -04:00
Erik Fonnesbeck
366538692b
Remove extra unmatched conf_mount_ro for a potential race condition preventing writes when generating ssh keys in the background. Ticket #673
2011-03-10 01:55:45 -07:00
jim-p
6c67a28df2
Set PKG_TMPDIR for embedded/nano because it will fill up /var trying to download packages otherwise. (From sullrich)
2011-02-23 12:36:43 -05:00
jim-p
e5323cca19
Run dumpon earlier, split dumpon/ddb from savecore and run savecore later.
2011-01-26 12:42:47 -05:00
jim-p
c3a56ba93a
Add support for dumpon/savecore to run on full installs.
2011-01-25 17:02:05 -05:00
jim-p
3b39d0ac8c
Whitespace fix
2011-01-25 17:02:04 -05:00
Scott Ullrich
df40aa8662
Be less chatty
2010-12-18 15:43:33 -05:00
Ermal
416e6432eb
Use fullpath
2010-11-30 17:17:30 +00:00
jim-p
fb2e53dae7
Run ecl through php instead of executing directly.
2010-11-30 08:40:50 -05:00
Scott Ullrich
690d24af8c
Add pfSsh.php externalconfiglocator playback script
2010-11-28 19:04:34 -05:00
Scott Ullrich
206f684d91
Adding external configuration loader which will look on all found disks except bootup disk for config.xml. If tconfig.xml is found on an external disk then it tests the roobobj to ensure its a valid file then calls test_config() to ensure it is a valid xml file. Once the file is validated a backup_config() is called to backup the current configuration and finally the file is installed using restore_backup()
2010-11-28 14:03:51 -05:00
Ermal
7f8d463f11
Bring interfaces up only if there is a mismatch to allow them to be reassigned.
2010-11-10 18:43:01 +00:00
Ermal
729931965e
Protect from strange situations on bootup by testing for is_array(). Do not add anymore the 127.0.0.2 route its not needed anymore. Also during bootup bring up all interfaces so the assignment process can deal with them(Possibly should be done in another code flow!).
2010-11-02 21:16:42 +00:00
jim-p
a6607b5fe0
More VPN log fixes, for consistency. Ticket #912
2010-11-02 15:14:11 -04:00