intrigeri
9b37f756f5
Exclude tmpfs filesystems from df output in the sys handler (Closes: Debian#745818).
2014-05-03 14:08:04 +00:00
intrigeri
8db80421aa
Fix indentation in sys handler.
...
Thanks to Jools Wills <jools@oxfordinspire.co.uk> for the patch.
2014-05-03 13:45:51 +00:00
Christian Prause
8ed2f8de3f
Added suse to the list of supported OS
2014-05-03 13:12:10 +00:00
intrigeri
0cb6fcd647
Delete trailing whitespace.
2013-09-23 10:19:26 +00:00
Micah Anderson
54ec07be55
add additional sys backup options to provide the ability to backup the MBR for every device found, and to backup the BIOS (if the flashrom program is installed, and the mainboard is supported)
2013-09-20 16:48:13 -04:00
Micah Anderson
373c6bcced
fix capitalization of LUKS
2013-09-20 13:45:57 -04:00
Micah Anderson
be4456ae3f
fix missing autoconf marker for @SED@
2013-09-20 13:45:10 -04:00
Micah Anderson
0df3c9939d
fix luks header backup to properly detect partitions
...
previously the code was modeled off of the partition backup methodology, this resulted in the code only attempting to detect luks on actual devices, and not on partitions. The code would step through every disk on the system (sda, sdb, etc.) and do a 'cryptsetup isLuks' on that device, and then based on that output save the luks header for any device that had one. Unfortunately, in many cases, luks headers are found on the partitions of those disks. So we were failing to detect any luks partitions and thus failing to backup their luks headers.
this commit changes that, it now will look for luks headers on the devices themselves (for cases where a full disk is used without partitions), and on any partitions that are detected
2013-09-20 13:44:11 -04:00
Micah Anderson
1eabbe5de7
dont run lspci and modinfo when hwinfo==no
2012-06-11 10:07:53 -04:00
intrigeri
65ff22247e
Remove useless and inconsistent executable bit on sys handler.
2011-09-20 22:36:04 +02:00
intrigeri
49a5c56321
sys: fix gathering of information about loaded modules.
...
cut is in /usr/bin actually.
2011-05-15 19:19:48 +02:00
intrigeri
d32cc2318c
sys: fix hwinfo ( Closes : #625501 )
2011-05-05 09:17:37 +02:00
intrigeri
6aca9c822b
All handlers: stop using "local VAR" outside functions. ( Closes : #530647 )
2011-04-25 18:55:58 +02:00
Micah Anderson
9271e58a24
older versions (lenny) of lvm2 have a bug in vgcfgbackup that makes it so when you specify multiple volume groups to backup, it gives an error, saying you must set the %s template for the name. We are doing that, it just cannot handle it properly.
...
This change routes around this issue, which has been fixed in later lvm2 releases, by passing only one argument to vgcfgbackup by taking all the volume groups that are found and running them through a for loop
2010-10-12 11:48:50 -04:00
intrigeri
7dce2f1138
sys: only run mdadm if RAID devices actually exist ( Closes : #572450 )
2010-03-06 15:27:34 +01:00
Matthijs Kooijman
78884142e7
Add a vim modeline with indentation settings.
...
The modelines added match the emacs lines already present and also set
the filetype to sh (just like the emacs lines).
2009-05-23 10:42:20 +02:00
Matthijs Kooijman
4ecaae9405
Make all indentation consistent.
...
Previously, there were many indentation styles in use: Real tabs, 2, 3
or 4 spaces, mixing these within the same file, function or even within
a single line.
This commit changes all bash scripts in the handlers, src and lib dirs
to use consistent indentation: three spaces are now used everywhere.
Other files (e.g. Makefiles) are left untouched.
Additionally, this commit removes all trailing whitespace.
2009-05-23 10:34:16 +02:00
intrigeri
386c427594
sys: backup dmsetup info as well, for easier restoring of Luks headers
2009-01-22 23:37:50 +00:00
intrigeri
772af74c80
sys: new lvm option to backup LVM metadata of every detected volume group
2009-01-22 22:15:13 +00:00
intrigeri
36854a51d4
sys: new luksheaders option to backup the Luks header of every Luks device
2009-01-22 22:14:22 +00:00
intrigeri
947b6f03ff
sys: explain how to fix the issue on "debconf-get-selections missing" error
2008-06-29 07:01:29 +00:00
intrigeri
ddce1197cb
sys: make debconf-get-selections detection on VServers really more robust
2008-06-25 09:21:11 +00:00
intrigeri
edeb50c733
sys: fix catifexec invocations with arguments to prevent "line 191: [: too many arguments" error messages
2008-06-25 09:07:30 +00:00
intrigeri
755c0160d4
sys: make error message clearer when debconf-get-selections can not be found on the host
2008-06-25 09:02:06 +00:00
intrigeri
3f29d82b6c
sys: typo
2008-06-25 09:01:20 +00:00
intrigeri
f1cb4e9a64
sys: fixed debconf-get-selections search in VServers, especially in case it is not available on the host
2008-06-25 09:00:04 +00:00
intrigeri
1d930270d0
sys: fix typo
2008-06-25 08:47:48 +00:00
Micah Anderson
b499255f8a
fix missing which that intrigeri saw
2008-06-24 20:31:58 +00:00
Micah Anderson
910abf33c7
added more robust mdadm raid device capture, by actually scanning active arrays via mdadm, rather than just catting the mdadm.conf file, which may be empty
2008-06-24 19:57:31 +00:00
Micah Anderson
4d81bb451c
fixed catifexec function to actually work, also now takes arguments that are passed, thanks to a report from John Hallam
2008-06-24 19:53:36 +00:00
Micah Anderson
33ff4f7506
add the ability to save the debconf package selection states in the sys handler, which aides in restoring installed packages with the right choices made
2008-06-24 18:57:39 +00:00
intrigeri
fd6796ad99
sys: support selection of VServers to run on with the new vsnames configuration option (Closes: Trac#45)
2008-06-24 16:05:44 +00:00
intrigeri
6c628e78f4
lib/vserver: added vservers_running function, use it in sys handler (to ease future fix for Trac#45)
2008-06-24 15:49:06 +00:00
intrigeri
56617bfc5b
sys: update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms (Closes: Trac#39)
2008-06-24 15:13:51 +00:00
Micah Anderson
3f2a826652
fixed Trac #1 , actually add example.rsync
2007-11-24 21:32:30 +00:00
intrigeri
579ea902ba
fixed autotools build, broken since r466, inhandlers/Makefile.am
2007-10-12 17:06:09 +00:00