Merge lp:~jamesodhunt/livecd-rootfs/system-image-network+systemd-setup into lp:livecd-rootfs

Proposed by James Hunt
Status: Merged
Merged at revision: 940
Proposed branch: lp:~jamesodhunt/livecd-rootfs/system-image-network+systemd-setup
Merge into: lp:livecd-rootfs
Diff against target: 43 lines (+18/-11)
3 files modified
live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot (+9/-0)
live-build/ubuntu-core/hooks/04-configure_network.chroot (+9/-0)
live-build/ubuntu-core/hooks/99-remove-documentation.chroot (+0/-11)
To merge this branch: bzr merge lp:~jamesodhunt/livecd-rootfs/system-image-network+systemd-setup
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+229455@code.launchpad.net
To post a comment you must log in.
941. By James Hunt

* Use /etc/network/interfaces.d/ rather than /etc/network/interfaces.

Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot'
2--- live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot 1970-01-01 00:00:00 +0000
3+++ live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot 2014-08-04 13:33:27 +0000
4@@ -0,0 +1,9 @@
5+#!/bin/sh -x
6+
7+# Boot using systemd and disable quiet boot
8+# to see what is happening.
9+systemd=/lib/systemd/systemd
10+sed \
11+ -e 's,^\([ ]*GRUB_CMDLINE_LINUX\)=""$,\1="init=$systemd",g' \
12+ -e 's,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \
13+ /etc/default/grub
14
15=== added file 'live-build/ubuntu-core/hooks/04-configure_network.chroot'
16--- live-build/ubuntu-core/hooks/04-configure_network.chroot 1970-01-01 00:00:00 +0000
17+++ live-build/ubuntu-core/hooks/04-configure_network.chroot 2014-08-04 13:33:27 +0000
18@@ -0,0 +1,9 @@
19+#!/bin/sh -x
20+
21+if=eth0
22+
23+# Manually configure the first ethernet device
24+cat >/etc/network/interfaces.d/"$if"<<EOT
25+auto $if
26+iface $if inet dhcp
27+EOT
28
29=== removed file 'live-build/ubuntu-core/hooks/99-remove-documentation.chroot'
30--- live-build/ubuntu-core/hooks/99-remove-documentation.chroot 2014-07-29 20:21:41 +0000
31+++ live-build/ubuntu-core/hooks/99-remove-documentation.chroot 1970-01-01 00:00:00 +0000
32@@ -1,11 +0,0 @@
33-#!/bin/bash
34-
35-# remove-documentation: Remove unnecessary documentation to reduce disk usage
36-#
37-# Author: Alex Chiang <achiang@canonical.com>
38-# Date : November 9, 2010
39-
40-echo "Removing documentation..."
41-find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true
42-find /usr/share/doc -empty|xargs rmdir || true
43-rm -rf /usr/share/man /usr/share/groff /usr/share/info /usr/share/lintian /usr/share/linda /var/cache/man

Subscribers

People subscribed via source and target branches