Commit Graph

12 Commits

Author SHA1 Message Date
Topi Miettinen
32c0a18d2b
Delete empty lines at end of file
Upstream commit hooks don't allow empty lines and of course they serve no
purpose.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-05-16 11:25:10 +03:00
Benjamin Drung
7abfa8dc77 Fix shellcheck issues in initramfs-tools scripts
initramfs-tools will use shellcheck on its own code and will probably
ship a shellcheck autopkgtest that checks its hooks and script
directory. That's how the shellcheck issues in systemd's initramfs-tools
scripts were found.

```
shellcheck -e SC1091 $(find debian/extra/initramfs-tools/ -type f)
```
2019-01-12 20:36:33 +01:00
Dimitri John Ledkov
4d0d6d9d31
initramfs-tools: trigger udevadm add actions with subsystems first.
This updates the initramfs-tools init-top udev script to trigger udevadm
actions with type specified. This mimicks the
systemd-udev-trigger.service. Without type specified only devices are
triggered, but triggering subsystems may also be required and should happen
before triggering the devices. This is the case for example on s390x with zdev
generated udev rules.

LP: #1713536
2017-08-30 11:10:17 +01:00
Michael Biebl
7c5512e887 Try mount -n -o move first
initramfs-tools is not actually using util-linux mount (yet), so making
mount -n --move the first alternative would trigger an error message if
users have built their initramfs without busybox support.
2016-11-22 14:44:15 +01:00
Martin Pitt
7da9dce077 Fall back to "mount -o move" in udev initramfs script
klibc's mount does not understand --move, so for the time being we need to
support both variants.

Closes: #845161
2016-11-21 09:52:58 +01:00
Luca Boccassi
5513a0c6c7 Use mount --move in initramfs-tools udev script
Due to recent changes in busybox and initramfs-tools the mount
utility is no longer the one from busybox but from util-linux.
The latter does not support mount -o move.
The former supports both -o move and --move, so use it instead to be
compatible with both.
See this discussion for more details:
https://bugs.debian.org/823856

Closes: #844775
2016-11-19 20:01:17 +01:00
Martin Pitt
2a2e638e94 debian/extra/initramfs-tools/scripts/init-bottom/udev: Prefer "nuke" again
This command comes from klibc-utils, not from initramfs-tools. But fall back to
"rm" if it does not exist.
2016-01-21 09:53:13 +01:00
Martin Pitt
d77cf3ba3f debian/extra/initramfs-tools/scripts/init-bottom/udev: Use "rm -rf" instead of "nuke"
"nuke" does not exist any more in current initramfs-tools.
2015-12-10 13:16:22 +01:00
Michael Biebl
52d12b880b Drop scsi_wait_scan hack from the udev initramfs-tools script
This Linux kernel module has been broken since 2.6.30 and as a result
was removed in 3.5. The Debian Jessie kernel no longer ships this
module.

Closes: #752775
2015-07-15 23:35:52 +02:00
Martin Pitt
61e055638c debian/extra/initramfs-tools/scripts/init-top/udev: Drop $ROOTDELAY wait
This does not concern udev in particular, but is handled by initramfs-tools
itself (scripts/local). The intention of this parameter is not to statically
wait for the given time, but wait *up to* that time for the root device to
appear.

Thanks to Thomas Conté for pointing this out!
2015-06-01 15:14:35 +02:00
Martin Pitt
6e33bf38ef When booting with "quiet", run the initramfs' udevd with "notice" log level
This avoids the "starting version XXX" message cluttering the screen in quiet
mode.

LP: #1432171
2015-05-21 07:36:43 +02:00
Martin Pitt
9e1d0901b5 Clean up Debian specific file installation
In debian/rules, remove manual file installation. Move them to
debian/*.install.

Move all Debian specific installed files to debian/extra/.
2015-01-22 09:46:15 +01:00