Merge ~mwhudson/ubuntu/+source/initramfs-tools:lp-1924794 into ubuntu/+source/initramfs-tools:ubuntu/devel

Proposed by Michael Hudson-Doyle
Status: Merged
Merge reported by: Michael Hudson-Doyle
Merged at revision: 92f90a9690c6aba112fd5cd6aa4c070a7e5946e4
Proposed branch: ~mwhudson/ubuntu/+source/initramfs-tools:lp-1924794
Merge into: ubuntu/+source/initramfs-tools:ubuntu/devel
Diff against target: 39 lines (+14/-2)
2 files modified
debian/changelog (+7/-0)
scripts/functions (+7/-2)
Reviewer Review Type Date Requested Status
git-ubuntu developers Pending
Review via email: mp+401992@code.launchpad.net

Commit message

scripts/functions: Fix the fix for bug #1880735, fixing setting up vlans from the kernel commandline. LP: #1924794

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index c5bb37b..03d0cf1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+initramfs-tools (0.139ubuntu4) UNRELEASED; urgency=medium
7+
8+ * scripts/functions: Fix the fix for bug #1880735, fixing setting up vlans
9+ from the kernel commandline. LP: #1924794
10+
11+ -- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Thu, 29 Apr 2021 14:15:52 +1200
12+
13 initramfs-tools (0.139ubuntu3) hirsute; urgency=medium
14
15 * hooks/fsck: always include fsck binaries irrespective of PASSNO value,
16diff --git a/scripts/functions b/scripts/functions
17index 5564588..2bd2623 100644
18--- a/scripts/functions
19+++ b/scripts/functions
20@@ -310,12 +310,17 @@ configure_networking()
21
22 for v in $VLAN; do
23 VLAN_LINK="$VLAN_LINK ${v##*:}"
24+ VLAN_NAMES="$VLAN_NAMES ${v%:*}"
25 done
26
27 # activate non-autoconfigured s390x devices
28 for dev in $DEVICE $DEVICE6 $IP6 $VLAN_LINK; do
29- # skip $DEVICE which is processed in $VLAN_LINK
30- echo "${VLAN}" | grep -q "${dev}" && continue
31+ # do not chzdev $dev if it is a not-yet-created vlan interface
32+ for vlan_name in $VLAN_NAMES; do
33+ if [ $dev = $vlan_name ]; then
34+ continue 2
35+ fi
36+ done
37 case ${dev} in
38 enc*)
39 zdev=${dev#enc}

Subscribers

People subscribed via source and target branches