xbps-casper: update for udev>=174.
This commit is contained in:
parent
6d5840ccfe
commit
8eb36ddda2
3 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,6 @@ copy_exec ${ROOTDIR}/sbin/losetup /sbin
|
||||||
mkdir -p ${DESTDIR}/lib/udev/rules.d
|
mkdir -p ${DESTDIR}/lib/udev/rules.d
|
||||||
cp -p ${ROOTDIR}/lib/udev/rules.d/60-cdrom_id.rules ${DESTDIR}/lib/udev/rules.d/
|
cp -p ${ROOTDIR}/lib/udev/rules.d/60-cdrom_id.rules ${DESTDIR}/lib/udev/rules.d/
|
||||||
copy_exec ${ROOTDIR}/lib/udev/cdrom_id /lib/udev
|
copy_exec ${ROOTDIR}/lib/udev/cdrom_id /lib/udev
|
||||||
copy_exec ${ROOTDIR}/lib/udev/path_id /lib/udev
|
|
||||||
|
|
||||||
# cifs boot
|
# cifs boot
|
||||||
if [ -x ${ROOTDIR}/sbin/mount.cifs ]; then
|
if [ -x ${ROOTDIR}/sbin/mount.cifs ]; then
|
||||||
|
|
|
@ -112,8 +112,8 @@ is_nice_device()
|
||||||
{
|
{
|
||||||
local sysfs_path="${1#/sys}"
|
local sysfs_path="${1#/sys}"
|
||||||
|
|
||||||
if /lib/udev/path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb)|platform-orion-ehci|platform-
|
if /sbin/udevadm test-builtin path_id "${sysfs_path}" | \
|
||||||
mmc|platform-mxsdhci)"; then
|
egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb)|platform-orion-ehci|platform-mmc|platform-mxsdhci)"; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if echo ${sysfs_path} | grep -q "^/block/dm-"; then
|
if echo ${sysfs_path} | grep -q "^/block/dm-"; then
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-casper'
|
# Template file for 'xbps-casper'
|
||||||
pkgname=xbps-casper
|
pkgname=xbps-casper
|
||||||
_localver=0.19 # XBPS package version
|
_localver=0.20 # XBPS package version
|
||||||
_distver=1.236 # This should match the upstream (Ubuntu) version
|
_distver=1.236 # This should match the upstream (Ubuntu) version
|
||||||
version=${_localver}.${_distver}
|
version=${_localver}.${_distver}
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
@ -16,6 +16,7 @@ noarch=yes
|
||||||
keep_empty_dirs=yes
|
keep_empty_dirs=yes
|
||||||
conf_files="/etc/casper.conf"
|
conf_files="/etc/casper.conf"
|
||||||
|
|
||||||
|
Add_dependency full udev ">=174" # no path_id anymore
|
||||||
Add_dependency full initramfs-tools
|
Add_dependency full initramfs-tools
|
||||||
|
|
||||||
do_install()
|
do_install()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue