summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Michael Prokop [Fri, 10 Jul 2020 08:07:32 +0000 (10:07 +0200)]
debian: wrap-and-sort
wrap-and-sort -t -a -s
Michael Prokop [Fri, 10 Jul 2020 08:07:00 +0000 (10:07 +0200)]
debian: use https URLs
Michael Prokop [Fri, 10 Jul 2020 08:01:17 +0000 (10:01 +0200)]
scripts/forensic-mark-readonly: support standalone usage and configuration file usage
Instead of accepting environment variable $DEVNAME we expect the
script to be invoked with and argument like /dev/sda1 (useful for
manual execution) or sda1 (when invoked via udev rule).
Support configuration via /etc/grml/forensic.conf with two variables:
* READONLY_MODE: if set to "disable" then the script won't modify
block devices
* READONLY_IGNORE: this supports ignoring devices to not being set to
read-only
While at it improve coding style.
This work was funded by Grml-Forensic.
Michael Prokop [Fri, 26 Jun 2020 17:07:31 +0000 (19:07 +0200)]
grml-udev-config.grml-forensic: also react to block device *changes*
When executing `partprobe /dev/sda`, then partitions are
changed, removed and added again, while DISK_RO=0 is set
on the main block device (/dev/sda):
| % sudo udevadm monitor --property > udev-info
| % grep -e KERNEL -e DISK_RO udev-info
| KERNEL - the kernel uevent
| KERNEL[7033.955480] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda1 (block)
| KERNEL[7033.958758] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda2 (block)
| KERNEL[7033.963743] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda3 (block)
| KERNEL[7033.971321] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda (block)
| KERNEL[7033.971569] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda1 (block)
| KERNEL[7033.971745] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda2 (block)
| KERNEL[7033.971918] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda3 (block)
| KERNEL[7034.002552] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda (block)
| KERNEL[7034.004249] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda1 (block)
| KERNEL[7034.004446] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda2 (block)
| KERNEL[7034.004631] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda3 (block)
| KERNEL[7034.034068] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda (block)
| KERNEL[7034.034228] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda1 (block)
| KERNEL[7034.034378] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda2 (block)
| KERNEL[7034.034516] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda3 (block)
| KERNEL[7034.828780] remove /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda1 (block)
| KERNEL[7034.829322] remove /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda2 (block)
| KERNEL[7034.829622] remove /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda3 (block)
| KERNEL[7034.829941] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda (block)
| DISK_RO=0
| KERNEL[7034.830451] change /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda (block)
| KERNEL[7034.830902] add /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda1 (block)
| KERNEL[7034.831219] add /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda2 (block)
| KERNEL[7034.839261] add /devices/pci0000:00/0000:00:0d.0/ata3/host4/target4:0:0/4:0:0:0/block/sda/sda3 (block)
| DISK_RO=0
Explicitly pass block device name to the script, which should
make usage of script as standalone tool better.
@See grml-forensic/release-planning issue #155
This work was funded by Grml-Forensic.
Michael Prokop [Tue, 18 Nov 2014 11:56:02 +0000 (12:56 +0100)]
Release new version 0.4.2
Michael Prokop [Tue, 18 Nov 2014 11:55:06 +0000 (12:55 +0100)]
Fix check for presence of udev initscript in /etc/runlevel.conf [Closes: issue1322]
Thanks: Christian Hofstaedtler for reporting this issue
Michael Prokop [Fri, 31 Oct 2014 09:24:16 +0000 (10:24 +0100)]
Release new version 0.4.1
Michael Prokop [Fri, 31 Oct 2014 09:02:36 +0000 (10:02 +0100)]
Revert "Work around "udev >=208-6 without systemd" bug with loopback device, causing serious boot delay"
This reverts commit
be7f20b0fcb2b7961e06dcf0e2fb15e09cfd98f3.
This actually breaks all the other network devices. :(
Michael Prokop [Tue, 28 Oct 2014 23:49:05 +0000 (00:49 +0100)]
Release new version 0.4.0
Michael Prokop [Tue, 28 Oct 2014 23:44:02 +0000 (00:44 +0100)]
Work around "udev >=208-6 without systemd" bug with loopback device, causing serious boot delay
Without the loopback device properly set up when the udev
init script gets executed we have a boot delay of XX seconds.
This is a show stopper for us and until
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754987
has been resolved we need a workaround for that.
Thanks: Evgeni Golov, Marco d'Itri, Christian Hofstaedtler and Ulrich Dangel for debugging assistance
Michael Prokop [Tue, 28 Oct 2014 23:24:17 +0000 (00:24 +0100)]
Run wrap-and-sort -a on debian/
Michael Prokop [Tue, 28 Oct 2014 23:24:03 +0000 (00:24 +0100)]
Bump Standards-Version to 3.9.6
Michael Prokop [Wed, 2 Apr 2014 09:43:31 +0000 (11:43 +0200)]
Release new version 0.3.2
Michael Prokop [Wed, 2 Apr 2014 09:42:32 +0000 (11:42 +0200)]
Bump Standards-Version to 3.9.5
Michael Prokop [Wed, 2 Apr 2014 09:40:15 +0000 (11:40 +0200)]
forensic-mark-readonly: check only for boot option read-only
The "forensic" boot option isn't in use anymore and live-boot
upstream has renamed "readonly" to "read-only", so adapt code
accordingly.
Michael Prokop [Sun, 28 Oct 2012 11:29:23 +0000 (12:29 +0100)]
Release new version 0.3.1
Michael Prokop [Sun, 28 Oct 2012 11:16:57 +0000 (12:16 +0100)]
grml-udev-rebuildfstab: write label name into comment when label feature is disabled
While at it log invalid label names, as the "$addinfo" doesn't
receive the according place with the way it's used nowadays.
Michael Prokop [Sun, 28 Oct 2012 11:03:59 +0000 (12:03 +0100)]
grml-udev-rebuildfstab: support diabling labels via /etc/grml/rebuildfstab.conf
It's inconveniant to be able to configure the behaviour
only during boot up, so support customization through
configuration file /etc/grml/rebuildfstab.conf.
As the file might disable labels but the user might want
to enable them during boot up, add support for boot option
'label' to force usage of LABEL=... in /etc/fstab, actually
overriding the configuration file settings.
Michael Prokop [Tue, 9 Oct 2012 17:00:53 +0000 (19:00 +0200)]
Release new version 0.3.0
Michael Prokop [Tue, 9 Oct 2012 17:00:05 +0000 (19:00 +0200)]
Bump Standards-Version to 3.9.4
Michael Prokop [Tue, 9 Oct 2012 14:45:42 +0000 (16:45 +0200)]
NTFS-3g/FAT: don't use umask=000 but dmask=000,fmask=111 instead
Leave directories as they are, but don't provide files with file
permissions 777 AKA executables, but in mode 666 instead. This
still provides writeable files but they aren't recognized as
executables (e.g. by file managers).
Acked-by: Alexander Wirt
Acked-by: Markus Rekkenbeil
Closes: gf-issue165
Michael Prokop [Tue, 9 Oct 2012 14:25:47 +0000 (16:25 +0200)]
Do not set mount options for NTFS partitions to "ro" any longer
ntfs-3g handles NTFS quite well those days
Michael Prokop [Wed, 11 Jan 2012 17:33:40 +0000 (18:33 +0100)]
Release new version 0.2.0
Michael Prokop [Wed, 11 Jan 2012 12:38:33 +0000 (13:38 +0100)]
Use /media instead of /mnt for default mount paths [Testing: issue1127]
Michael Prokop [Mon, 9 Jan 2012 15:35:17 +0000 (16:35 +0100)]
Release new version 0.1.0
Ulrich Dangel [Mon, 2 Jan 2012 09:54:10 +0000 (10:54 +0100)]
Create the standard directories in the rebuildfstab script instead of grml-autoconfig.
With this change grml-udev-rebuildfstab is the primary place to specify
MOUNTPOINT_PREFIX.
Ulrich Dangel [Mon, 2 Jan 2012 07:01:09 +0000 (08:01 +0100)]
Use MOUNTPOINT_PREFIX instead of hardcoded /mnt path in grml-udev-rebuildfstab
Ulrich Dangel [Mon, 2 Jan 2012 07:01:04 +0000 (08:01 +0100)]
Use sda1 instead of hda1 as example in /etc/fstab
Ulrich Dangel [Fri, 30 Dec 2011 13:42:36 +0000 (14:42 +0100)]
Add udev rules for braille detection for automated brltty startup.
Copied the brltty udev-rule from the ubuntu package as they removed some
too generic rules matching USB-Serial adapters. The rules will not work
with serial devices.
Michael Prokop [Tue, 20 Dec 2011 19:21:37 +0000 (20:21 +0100)]
Release new version 0.0.10
Christian Hofstaedtler [Mon, 19 Dec 2011 11:42:47 +0000 (12:42 +0100)]
Fix swap partitions missing from fstab
swap partitions get ID_FS_USAGE='other' instead of 'filesystem'.
This change hands the filter for ID_FS_USAGE to grml-udev-rebuildfstab,
to the point right before adding the new entries. This way cleanup
should work always, and we get swap partitions, too.
Christian Hofstaedtler [Mon, 5 Dec 2011 15:06:02 +0000 (16:06 +0100)]
Release new version 0.0.9.
Christian Hofstaedtler [Wed, 30 Nov 2011 11:35:16 +0000 (12:35 +0100)]
Repair noudev info message
Christian Hofstaedtler [Sun, 27 Nov 2011 17:43:09 +0000 (18:43 +0100)]
Refer to new grml-udev-rebuildfstab man page in /etc/fstab header
Christian Hofstaedtler [Sun, 27 Nov 2011 17:18:33 +0000 (18:18 +0100)]
Add man page for grml-udev-rebuildfstab
Everybody referencing grml-rebuildfstab.8 should now switch to this
one.
Michael Prokop [Sat, 26 Nov 2011 19:08:04 +0000 (20:08 +0100)]
Release new version 0.0.8
Michael Prokop [Sat, 26 Nov 2011 19:07:53 +0000 (20:07 +0100)]
Bump Standards-Version to 3.9.2
Christian Hofstaedtler [Thu, 17 Nov 2011 09:27:18 +0000 (10:27 +0100)]
Update noudev info texts
Christian Hofstaedtler [Wed, 27 Jul 2011 19:30:29 +0000 (21:30 +0200)]
Add debian/control headers Origin, Bugs
Michael Prokop [Mon, 27 Dec 2010 16:41:06 +0000 (17:41 +0100)]
Release new version 0.0.7.
Ulrich Dangel [Mon, 27 Dec 2010 16:25:03 +0000 (17:25 +0100)]
Ingore all special characters and only use usb-sd* as prefered name
Michael Prokop [Mon, 27 Dec 2010 16:07:03 +0000 (17:07 +0100)]
grml-udev-rebuildfstab: update script header.
Michael Prokop [Mon, 27 Dec 2010 14:44:23 +0000 (15:44 +0100)]
Add device name itself to end of device entry line in /etc/fstab.
Michael Prokop [Mon, 27 Dec 2010 14:43:55 +0000 (15:43 +0100)]
Check for space char inside label and ignore label then.
Ulrich Dangel [Mon, 27 Dec 2010 15:15:25 +0000 (16:15 +0100)]
Ignore unsupported labes and always use ID_FS_LABEL if valid
Ulrich Dangel [Mon, 27 Dec 2010 14:40:16 +0000 (15:40 +0100)]
Really ignore external symlinks :/
Michael Prokop [Thu, 16 Dec 2010 16:58:21 +0000 (17:58 +0100)]
Release new version 0.0.6.
Michael Prokop [Thu, 16 Dec 2010 16:45:08 +0000 (17:45 +0100)]
Make sure to always clean up on exit.
Michael Prokop [Mon, 13 Dec 2010 11:16:06 +0000 (12:16 +0100)]
Release new version 0.0.5.
Michael Prokop [Mon, 13 Dec 2010 11:16:29 +0000 (12:16 +0100)]
Bump Standards-Version to 3.9.1.
Michael Prokop [Mon, 13 Dec 2010 10:54:20 +0000 (11:54 +0100)]
grml-udev-rebuildfstab: drop trailing whitespace.
Ulrich Dangel [Sat, 11 Dec 2010 12:37:28 +0000 (13:37 +0100)]
Introduce grml-udev-rebuildfstab
Ulrich Dangel [Wed, 8 Dec 2010 01:26:54 +0000 (02:26 +0100)]
Add watch option for dm devices to get change notification if devic changes.
Ulrich Dangel [Wed, 8 Dec 2010 01:27:57 +0000 (02:27 +0100)]
Remove old and unnecessary comments in grml-blockdevices.udev
Michael Prokop [Sat, 3 Apr 2010 00:55:40 +0000 (02:55 +0200)]
grml-blockdevices rule: do not react on changes in block devices but on filesystem layer.
Michael Prokop [Fri, 19 Mar 2010 00:50:24 +0000 (01:50 +0100)]
Bump Standards-Version to 3.8.4.
Michael Prokop [Fri, 19 Mar 2010 00:48:54 +0000 (01:48 +0100)]
Update changelog for release 0.0.3.
Michael Prokop [Fri, 19 Mar 2010 00:46:48 +0000 (01:46 +0100)]
Get rid of bashishm in scripts/forensic-mark-readonly, some minor quoting improvements and restore cmdline check.
Ulrich Dangel [Thu, 11 Mar 2010 19:57:43 +0000 (20:57 +0100)]
Only set device to read-only if parent is also read-only
Michael Prokop [Sat, 14 Nov 2009 15:24:46 +0000 (16:24 +0100)]
Rework Conflicts/Depends.
Michael Prokop [Sat, 14 Nov 2009 11:14:41 +0000 (12:14 +0100)]
Drop TODO file
Michael Prokop [Sat, 14 Nov 2009 11:04:32 +0000 (12:04 +0100)]
Drop comments from debian/post*
Michael Prokop [Sat, 14 Nov 2009 01:47:54 +0000 (02:47 +0100)]
Adjust Depends on udev version
Michael Prokop [Fri, 13 Nov 2009 20:45:53 +0000 (21:45 +0100)]
Update README.Debian + debian/rules
Michael Prokop [Fri, 13 Nov 2009 20:10:14 +0000 (21:10 +0100)]
Make it an Arch: all package
Michael Prokop [Fri, 13 Nov 2009 19:58:27 +0000 (20:58 +0100)]
Add TODO file
Michael Prokop [Fri, 13 Nov 2009 19:18:42 +0000 (20:18 +0100)]
Update init script: install it under different name, add my_tty shell function - update overrides accordingly
Michael Prokop [Fri, 13 Nov 2009 17:37:22 +0000 (18:37 +0100)]
Drop NAME="%k" from debian/grml-udev-config.grml-usbdev.udev
The NAME="%k" is superfluous and breaks kernel supplied names.
Michael Prokop [Fri, 13 Nov 2009 17:01:25 +0000 (18:01 +0100)]
Fix typo in Conflicts
Michael Prokop [Fri, 13 Nov 2009 12:12:58 +0000 (13:12 +0100)]
initial checkin