The following changes were made:

* Upgraded to more recent version of eudev
  * Added REPO
  * Removed --disable-static
  * Added udev.conf
  * usher now uses /bin/sh
  * Removed TARGET from usher
  * usher now checks for chroot and runs udevd restart if not in chroot
  * usher now executes mkinitramfs
This commit is contained in:
2018-04-06 12:08:08 -05:00
parent 79c2b8af49
commit cae06ab9b9
4 changed files with 12 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -e
@@ -7,17 +7,17 @@ case $1 in
exit 0
;;
postinst)
if [ ! -f ${TARGET}/etc/udev/udev.conf ]; then
install -m 644 ${TARGET}/usr/share/eudev/udev.conf \
${TARGET}/etc/udev/udev.conf
if [ ! -f /etc/udev/udev.conf ]; then
install -m 644 /usr/share/eudev/udev.conf /etc/udev/udev.conf
fi
if [[ ! ${TARGET} ]]; then
if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i \
/proc/1/root 2>/dev/null)" ]; then
/etc/init.d/udevd restart
update-rc enable udevd
else
chroot ${TARGET} update-rc enable udevd
fi
update-rc enable udevd
mkinitramfs all
;;
prerm)
exit 0