Merge ~mwhudson/casper:additional-iso-url into casper:main

Proposed by Michael Hudson-Doyle
Status: Merged
Merged at revision: 0014d2f7c824ec8847c5e0e5e5dbb83c9dd25259
Proposed branch: ~mwhudson/casper:additional-iso-url
Merge into: casper:main
Diff against target: 30 lines (+5/-2)
2 files modified
debian/manpage/casper.7 (+2/-2)
scripts/casper (+3/-0)
Reviewer Review Type Date Requested Status
Dan Bungert (community) Approve
Ubuntu Installer Team Pending
Review via email: mp+423817@code.launchpad.net

Commit message

support iso-url= as a synonym for url=

This is so the user can use a command line argument that is not also
interpreted by cloud-init.

To post a comment you must log in.
Revision history for this message
Dan Bungert (dbungert) wrote :

Thanks for doing this, this will really help netboot.
We should update debian/manpage/casper.7

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

Good catch, done.

Revision history for this message
Dan Bungert (dbungert) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/manpage/casper.7 b/debian/manpage/casper.7
2index 3ee0629..780c5e4 100644
3--- a/debian/manpage/casper.7
4+++ b/debian/manpage/casper.7
5@@ -52,9 +52,9 @@ Configure the running locale as specified, if not present the live-media rootfs
6 Add a ubiquity hook to install driver-updates to the target system.
7 .TP
8 .BR "netboot[=" nfs "|" cifs "|" url ]
9-This tells casper to perform a network mount. The parameter "nfsroot=" (with optional "nfsopts="), should specify where is the location of the root filesystem. With no args, will try cifs first, and if it fails nfs. If url method is chosen, "url=" parameter should point to the location of the ".iso" that will be downloaded and mounted. Note "url=" on the commandline alone, by default sets "netboot=url" method too.
10+This tells casper to perform a network mount. The parameter "nfsroot=" (with optional "nfsopts="), should specify where is the location of the root filesystem. With no args, will try cifs first, and if it fails nfs. If url method is chosen, "iso-url=" parameter should point to the location of the ".iso" that will be downloaded and mounted. Note "iso-url=" on the commandline alone, by default sets "netboot=url" method too.
11 .TP
12-.BI preseed/url|url= URL
13+.BI iso-url|url= URL
14 This tells casper the download location of the installer ISO. The ISO will be downloaded and mounted. Networking is required for this option to work, which can be configured with "ip=" option. Note, setting this option, will also set "netboot=url" method.
15 .TP
16 .B persistent
17diff --git a/scripts/casper b/scripts/casper
18index cd4a76c..a048f9a 100644
19--- a/scripts/casper
20+++ b/scripts/casper
21@@ -49,6 +49,9 @@ parse_cmdline() {
22 url=*.iso)
23 export NETBOOT=url
24 export URL="${x#url=}" ;;
25+ iso-url=*.iso)
26+ export NETBOOT=url
27+ export URL="${x#iso-url=}" ;;
28 uuid=*)
29 UUID=${x#uuid=} ;;
30 ignore_uuid)

Subscribers

People subscribed via source and target branches