Koen Kooi : util-linux-ng: fix packaging, u-a and replace hardcoded paths
Review do_install () { · line 138
Quoted 10 lines
(quoted diff) +2
-1@@ -129,7 +131,8 @@ do_install () { install -d ${D}${sysconfdir}/default/ echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall - ln -sf ${sbindir}/swapon ${D}${sbindir}/swapoff.${PN} + rm ${D}${sbindir}/swap* -f + ln -sf ${base_sbindir}/swapon.${PN} ${D}${base_sbindir}/swapoff.${PN} ln -sf ${sbindir}/shutdown ${D}${sbindir}/reboot.${PN} ln -sf ${sbindir}/shutdown ${D}${sbindir}/halt.${PN} ln -sf ${sbindir}/shutdown ${D}${sbindir}/fastboot
What's the reason for that "rm"? This looks like it will lose when ${base_sbindir} and ${sbindir} are the same directory.
p.
Quoted 4 lines · Phil Blundell
Quoted 4 lines
(quoted diff) +0
-0@@ -129,7 +131,8 @@ do_install () { install -d ${D}${sysconfdir}/default/ echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"'> ${D}${sysconfdir}/default/mountall
Quoted 9 lines
Review do_install () { · line 138
Quoted 6 lines
(quoted diff) +2
-1- ln -sf ${sbindir}/swapon ${D}${sbindir}/swapoff.${PN} + rm ${D}${sbindir}/swap* -f + ln -sf ${base_sbindir}/swapon.${PN} ${D}${base_sbindir}/swapoff.${PN} ln -sf ${sbindir}/shutdown ${D}${sbindir}/reboot.${PN} ln -sf ${sbindir}/shutdown ${D}${sbindir}/halt.${PN} ln -sf ${sbindir}/shutdown ${D}${sbindir}/fastbootWhat's the reason for that "rm"? This looks like it will lose when ${base_sbindir} and ${sbindir} are the same directory.
u-l-ng installs a symlink there that breaks finding swapoff at runtime. base_sbindir and sbindir aren't the same for me, so I can't test what happens if they are.
regards,
Koen