Re: [PATCH] Don't use absolute path for ip, does not always work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 5, 2009, at 10:59 AM, Bill Nottingham <notting@xxxxxxxxxx> wrote:

Seewer Philippe (philippe.seewer@xxxxxx) said:
---
diff --git a/modules.d/40network/dhclient-script
b/modules.d/40network/dhclient-script
index 1ee78fe..d283762 100755
--- a/modules.d/40network/dhclient-script
+++ b/modules.d/40network/dhclient-script
@@ -69,7 +69,7 @@ setup_interface() {

case $reason in
    PREINIT)
-       run /sbin/ip link set $netif up
+       run ip link set $netif up
       ;;
    BOUND)
       setup_interface

Why does it not always work, unless you're breaking your initramfs?

What if your distro does not put ip in /sbin?

Besides, hardcoding executable locations when we know we have a sane path is silly.



Bill
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux