mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
util-linux: fix dangling symlinks
shutdown and swapon should be in $base_sbindir instead of $sbindir Signed-off-by: Qing He <qing.he@intel.com>
This commit is contained in:
@@ -149,11 +149,19 @@ do_install () {
|
|||||||
install -d ${D}${sysconfdir}/default/
|
install -d ${D}${sysconfdir}/default/
|
||||||
echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall
|
echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall
|
||||||
|
|
||||||
ln -sf ${sbindir}/swapon ${D}${sbindir}/swapoff.${PN}
|
# note ${PN} in swapon.${PN}, swapon is an alternative link that is
|
||||||
ln -sf ${sbindir}/shutdown ${D}${sbindir}/reboot.${PN}
|
# not guaranteed to provide multiple functions, similar for shutdown
|
||||||
ln -sf ${sbindir}/shutdown ${D}${sbindir}/halt.${PN}
|
ln -sf swapon.${PN} ${D}${base_sbindir}/swapoff.${PN}
|
||||||
ln -sf ${sbindir}/shutdown ${D}${sbindir}/fastboot
|
ln -sf shutdown.${PN} ${D}${base_sbindir}/reboot.${PN}
|
||||||
ln -sf ${sbindir}/shutdown ${D}${sbindir}/fasthalt
|
ln -sf shutdown.${PN} ${D}${base_sbindir}/halt.${PN}
|
||||||
|
ln -sf shutdown.${PN} ${D}${base_sbindir}/fastboot
|
||||||
|
ln -sf shutdown.${PN} ${D}${base_sbindir}/fasthalt
|
||||||
|
|
||||||
|
rm -f ${D}${sbindir}/halt
|
||||||
|
rm -f ${D}${sbindir}/reboot
|
||||||
|
rm -f ${D}${sbindir}/fastboot
|
||||||
|
rm -f ${D}${sbindir}/fasthalt
|
||||||
|
rm -f ${D}${sbindir}/swapoff
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
MAJOR_VERSION = "2.17"
|
MAJOR_VERSION = "2.17"
|
||||||
require util-linux.inc
|
require util-linux.inc
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
SRC_URI += "file://uclibc-compile.patch \
|
SRC_URI += "file://uclibc-compile.patch \
|
||||||
file://util-linux-ng-replace-siginterrupt.patch"
|
file://util-linux-ng-replace-siginterrupt.patch"
|
||||||
|
|||||||
Reference in New Issue
Block a user