Merge ~mwhudson/ubuntu/+source/initramfs-tools:minimal-dhclient into ubuntu/+source/initramfs-tools:ubuntu/devel

Proposed by Michael Hudson-Doyle
Status: Merged
Merge reported by: Michael Hudson-Doyle
Merged at revision: 313b5fb9152904a8ca1ea3dd02a824f0d913d51d
Proposed branch: ~mwhudson/ubuntu/+source/initramfs-tools:minimal-dhclient
Merge into: ubuntu/+source/initramfs-tools:ubuntu/devel
Diff against target: 25 lines (+13/-1)
1 file modified
scripts/functions (+13/-1)
Reviewer Review Type Date Requested Status
Canonical Foundations Team Pending
Review via email: mp+353782@code.launchpad.net

Description of the change

This is a very small change to start using dhclient to configure IPv4 addressing in some situations. I have a larger alternative I'll be proposing in a moment.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This got also merged i think. please close the merge proposal.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I don't think this did get merged and I can't reject it. I guess I'll mark it merged anyway to get it off the active list.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/functions b/scripts/functions
2index 9b51c32..d71891b 100644
3--- a/scripts/functions
4+++ b/scripts/functions
5@@ -323,7 +323,19 @@ configure_networking()
6 # Bring up device
7 ipconfig -t ${ROUNDTTT} "${DEVICE}"
8 ;;
9- dhcp|bootp|rarp|both)
10+ dhcp)
11+ # if we don't have a device specified, try to bring up
12+ # any eligible device.
13+ if [ -z "${DEVICE}" ]; then
14+ DEVICE=$(all_netbootable_devices)
15+ fi
16+
17+ # Bring up device
18+ for dev in ${DEVICE} ; do
19+ dhclient -4 -1 -v "${dev}" && { DEVICE="${dev}"; break }
20+ done
21+ ;;
22+ bootp|rarp|both)
23 ipconfig -t ${ROUNDTTT} -c ${IP} -d "${DEVICE}"
24 ;;
25 *)

Subscribers

People subscribed via source and target branches