-
Notifications
You must be signed in to change notification settings - Fork 6
Linstor support #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linstor support #27
Changes from all commits
c7a17ca
46bdb79
c5bf1f8
6d7f623
008e5f5
6736b87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[xcpng-linstor] | ||
name=xcpng - linstor | ||
baseurl=@@SRCURL@@/linstor/@@RPMARCH@@/ | ||
gpgkey=https://xcp-ng.org/RPM-GPG-KEY-xcpng | ||
failovermethod=priority | ||
skip_if_unavailable=False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That last one is the default documented value already, we can surely drop it (and from everywhere else).
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,12 @@ Options: | |
-V <VOLID> (mandatory) ISO volume ID | ||
--srcurl <URL> get RPMs from base-config and overlays from <URL> | ||
default: https://updates.xcp-ng.org/<MAJOR>/<DIST> | ||
--srcurl:<OVERLAY> <URL> get RPMs for specified <OVERLAY> from <URL> | ||
default: the global <URL> controled by --srcurl | ||
-D|--define-repo <NICK>!<URL> | ||
add yum repo with name <NICK> and base URL <URL> | ||
--extra-packages "<PACKAGE> [<PACKAGE> ...]" | ||
include packages and their dependencies in repo | ||
--efi-installer <mode> select how to build the GRUB EFI binary. Valid modes: | ||
rpm: take prebuilt xenserver/grubx64.efi from rpm | ||
mkimage: call mkimage to generate an EFI binary | ||
|
@@ -35,7 +39,7 @@ OUTISO= | |
FORCE_OVERWRITE=0 | ||
DOREPO=1 | ||
SIGNSCRIPT= | ||
SRCURL= | ||
EXTRA_PACKAGES= | ||
declare -A CUSTOM_REPOS=() | ||
RPMARCH="x86_64" | ||
EFIMODE="rpm" | ||
|
@@ -69,6 +73,13 @@ while [ $# -ge 1 ]; do | |
SRCURL="$2" | ||
shift | ||
;; | ||
--srcurl:*) | ||
[ $# -ge 2 ] || die_usage "$1 needs an argument" | ||
OVL="${1#--srcurl:}" | ||
[ -n "$OVL" -a -d "$topdir/configs/$OVL" ] || die_usage "$1 does not name an existing overlay" | ||
SRCURLS["$OVL"]="$2" | ||
shift | ||
;; | ||
-D|--define-repo) | ||
[ $# -ge 2 ] || die_usage "$1 needs an argument" | ||
case "$2" in | ||
|
@@ -83,6 +94,11 @@ while [ $# -ge 1 ]; do | |
CUSTOM_REPOS["$nick"]="$url" | ||
shift | ||
;; | ||
--extra-packages) | ||
[ $# -ge 2 ] || die_usage "$1 needs an argument" | ||
EXTRA_PACKAGES="$2" | ||
shift | ||
;; | ||
--efi-installer) | ||
[ $# -ge 2 ] || die_usage "$1 needs an argument" | ||
case "$2" in | ||
|
@@ -148,7 +164,7 @@ ISODIR=$(mktemp -d "$TMPDIR/installiso.XXXXXX") | |
# temporary for storing downloaded files etc | ||
SCRATCHDIR=$(mktemp -d "$TMPDIR/tmp.XXXXXX") | ||
|
||
setup_yum_download "$DIST" "$RPMARCH" "$SRCURL" | ||
setup_yum_download "$DIST" "$RPMARCH" | ||
|
||
|
||
## put all bits together | ||
|
@@ -231,7 +247,7 @@ if [ $DOREPO = 1 ]; then | |
|
||
mkdir ${VERBOSE} "$ISODIR/Packages" | ||
|
||
get_rpms --depends "$ISODIR/Packages" xcp-ng-deps kernel-alt | ||
get_rpms --depends "$ISODIR/Packages" xcp-ng-deps kernel-alt ${EXTRA_PACKAGES} | ||
Comment on lines
-234
to
+250
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After stepping back, this clearly calls for getting packages from template files directly, the hardcoded |
||
|
||
createrepo_c ${VERBOSE} "$ISODIR" | ||
if [ -n "$SIGNSCRIPT" ]; then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's not handled in this PR, we'll need to spawn a new work item to address that before 8.2.1 EOL.