[PATCH 0/2] doc/demo: Fix two issues seen on Fedora 36
Stefano Brivio (2): doc/demo: Drop /sbin from dhclient command, pass script file explicitly doc/demo: Clone and use mbuto in init namespace doc/demo.sh | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) -- 2.35.1
dhclient might be in /usr/sbin on recent versions of Fedora, and
mbuto just adds it to the same location as it was on the host:
just call dhclient instead of /sbin/dhclient.
This also applies for dhclient-script: given that we create the file
on boot, pass its explicit location with -sf.
Signed-off-by: Stefano Brivio
On Sat, Sep 17, 2022 at 01:55:18AM +0200, Stefano Brivio wrote:
dhclient might be in /usr/sbin on recent versions of Fedora, and mbuto just adds it to the same location as it was on the host: just call dhclient instead of /sbin/dhclient.
This also applies for dhclient-script: given that we create the file on boot, pass its explicit location with -sf.
Signed-off-by: Stefano Brivio
Hm, for the tests mbuto image I addressed this with symlinks instead. Not sure which is more elegant.
--- doc/demo.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/demo.sh b/doc/demo.sh index d39a10e..f704ed4 100755 --- a/doc/demo.sh +++ b/doc/demo.sh @@ -63,11 +63,11 @@ EOF echo "$ ip link set dev eth0 up" ip link set dev eth0 up sleep 3 - echo "$ /sbin/dhclient -4 -1" - /sbin/dhclient -4 -1 + echo "$ dhclient -4 -1 -sf /sbin/dhclient-script" + dhclient -4 -1 -sf /sbin/dhclient-script sleep 2 - echo "$ /sbin/dhclient -6 -1" - /sbin/dhclient -6 -1 + echo "$ dhclient -6 -1 -sf /sbin/dhclient-script" + dhclient -6 -1 -sf /sbin/dhclient-script sleep 2 echo echo "$ ip address show"
-- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
On Sat, 17 Sep 2022 13:23:55 +1000
David Gibson
On Sat, Sep 17, 2022 at 01:55:18AM +0200, Stefano Brivio wrote:
dhclient might be in /usr/sbin on recent versions of Fedora, and mbuto just adds it to the same location as it was on the host: just call dhclient instead of /sbin/dhclient.
This also applies for dhclient-script: given that we create the file on boot, pass its explicit location with -sf.
Signed-off-by: Stefano Brivio
Hm, for the tests mbuto image I addressed this with symlinks instead. Not sure which is more elegant.
Yes, I noticed... I think the symlinks are actually more elegant, but this is meant for interactive usage, and that has some potential to confuse the user. -- Stefano
On Sat, Sep 17, 2022 at 10:44:31AM +0200, Stefano Brivio wrote:
On Sat, 17 Sep 2022 13:23:55 +1000 David Gibson
wrote: On Sat, Sep 17, 2022 at 01:55:18AM +0200, Stefano Brivio wrote:
dhclient might be in /usr/sbin on recent versions of Fedora, and mbuto just adds it to the same location as it was on the host: just call dhclient instead of /sbin/dhclient.
This also applies for dhclient-script: given that we create the file on boot, pass its explicit location with -sf.
Signed-off-by: Stefano Brivio
Hm, for the tests mbuto image I addressed this with symlinks instead. Not sure which is more elegant.
Yes, I noticed... I think the symlinks are actually more elegant, but this is meant for interactive usage, and that has some potential to confuse the user.
Fair enough. I don't think I've ever tried to do anything with demo.sh -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
...and not in pasta's namespace: the fakeroot(1) version shipping
with (at least) Fedora 36 assumes "nested" operation as it sees that
the UID is 0, and claims it's not supported.
Signed-off-by: Stefano Brivio
participants (2)
-
David Gibson
-
Stefano Brivio