Merge ~mwhudson/casper:no-apt-cdrom-on-server into casper:main

Proposed by Michael Hudson-Doyle
Status: Merged
Merged at revision: c1da360609ac44cd8db9813058c6b07adc64a18a
Proposed branch: ~mwhudson/casper:no-apt-cdrom-on-server
Merge into: casper:main
Diff against target: 17 lines (+6/-0)
1 file modified
scripts/casper-bottom/41apt_cdrom (+6/-0)
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Approve
Review via email: mp+397948@code.launchpad.net

Commit message

do not run apt-cdrom when booting live-server ISO

live server installs use the pool on the cd differently and all running
apt-cdrom does is cause console spam and waste time.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/casper-bottom/41apt_cdrom b/scripts/casper-bottom/41apt_cdrom
2index eaaf985..3600eb3 100755
3--- a/scripts/casper-bottom/41apt_cdrom
4+++ b/scripts/casper-bottom/41apt_cdrom
5@@ -18,6 +18,12 @@ esac
6
7 . /scripts/casper-functions
8
9+case "$USERNAME" in
10+ ubuntu-server)
11+ exit 0
12+ ;;
13+esac
14+
15 log_begin_msg "$DESCRIPTION"
16
17 # apt-cdrom would fail otherwise

Subscribers

People subscribed via source and target branches