2020-12-02 05:12:13 +01:00
|
|
|
Index: libvirt-6.10.0/tools/virt-create-rootfs
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2020-12-02 05:12:13 +01:00
|
|
|
+++ libvirt-6.10.0/tools/virt-create-rootfs
|
2019-12-11 15:13:01 +01:00
|
|
|
@@ -0,0 +1,231 @@
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+#!/bin/sh
|
|
|
|
+set -e
|
|
|
|
+
|
|
|
|
+function fail
|
|
|
|
+{
|
|
|
|
+ echo $1
|
|
|
|
+ exit 1
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function print_help
|
|
|
|
+{
|
|
|
|
+cat << EOF
|
|
|
|
+virt-create-rootfs --root /path/to/rootfs [ARGS]
|
|
|
|
+
|
|
|
|
+Create a new root file system to use for distribution containers.
|
|
|
|
+
|
|
|
|
+ARGUMENTS
|
|
|
|
+
|
|
|
|
+ -h, --help print this help and exit
|
|
|
|
+ -r, --root path where to create the root FS
|
|
|
|
+ -d, --distro distribution to install
|
|
|
|
+ -a, --arch target architecture
|
|
|
|
+ -u, --url URL of the registration server
|
|
|
|
+ -c, --regcode registration code for the product
|
|
|
|
+ --dry-run don't actually run it
|
|
|
|
+EOF
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+ARCH=$(uname -i)
|
|
|
|
+ROOT=
|
|
|
|
+DISTRO=
|
|
|
|
+URL=
|
|
|
|
+REG_CODE=
|
|
|
|
+DRY_RUN=
|
|
|
|
+
|
|
|
|
+while test $# -gt 0
|
|
|
|
+do
|
|
|
|
+ case $1 in
|
|
|
|
+
|
|
|
|
+ -h | --help)
|
|
|
|
+ # usage and help
|
|
|
|
+ print_help
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ -r | --root)
|
|
|
|
+ if test $# -lt 2; then
|
|
|
|
+ fail "$1 needs a value"
|
|
|
|
+ fi
|
|
|
|
+ ROOT="$2"
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ -a | --arch)
|
|
|
|
+ if test $# -lt 2; then
|
|
|
|
+ fail "$1 needs a value"
|
|
|
|
+ fi
|
|
|
|
+ case "$2" in
|
|
|
|
+ i586 | x86_64)
|
|
|
|
+ ARCH=$2
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ fail "$1 valid values are 'i586', 'x86_64'"
|
|
|
|
+ esac
|
|
|
|
+ # Sanity checks for the arch
|
|
|
|
+ HOST_ARCH=$(uname -i)
|
|
|
|
+ case "$HOST_ARCH" in
|
|
|
|
+ i?86)
|
|
|
|
+ if test $ARCH = "x86_64"; then
|
|
|
|
+ fail "Host won't run x86_64 container"
|
|
|
|
+ fi
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ -u | --url)
|
|
|
|
+ if test $# -lt 2; then
|
|
|
|
+ fail "$1 needs a value"
|
|
|
|
+ fi
|
|
|
|
+ URL="$2"
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ -d | --distro)
|
|
|
|
+ if test $# -lt 2; then
|
|
|
|
+ fail "$1 needs a value"
|
|
|
|
+ fi
|
|
|
|
+ case "$2" in
|
|
|
|
+ SLED-* | SLES-* | openSUSE-*)
|
|
|
|
+ DISTRO=$2
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ fail "$1 valid values are 'SLED-*', 'SLES-*', 'openSUSE-*'"
|
|
|
|
+ esac
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ -c | --regcode)
|
|
|
|
+ if test $# -lt 2; then
|
|
|
|
+ fail "$1 needs a value"
|
|
|
|
+ fi
|
|
|
|
+ REG_CODE=$2
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ --dry-run)
|
|
|
|
+ DRY_RUN="yes"
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ *)
|
|
|
|
+ fail "Unknown option: $1"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
+ shift
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+if test -z "$ROOT"; then
|
|
|
|
+ fail "--root argument need to be provided"
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+RUN=
|
|
|
|
+if test "$DRY_RUN" = "yes"; then
|
|
|
|
+ RUN="echo"
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+function call_zypper
|
|
|
|
+{
|
|
|
|
+ $RUN zypper --root "$ROOT" $*
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function install_sle
|
|
|
|
+{
|
|
|
|
+ PRODUCT="$1"
|
2019-12-11 15:13:01 +01:00
|
|
|
+ TARGET_VERSION="$2"
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2019-12-11 15:13:01 +01:00
|
|
|
+ case "$TARGET_VERSION" in
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+ 12.0)
|
|
|
|
+ # Transform into zypper internal version scheme
|
2019-12-11 15:13:01 +01:00
|
|
|
+ TARGET_VERSION="12"
|
|
|
|
+ ;;
|
|
|
|
+ 15.0)
|
|
|
|
+ TARGET_VERSION="15"
|
|
|
|
+ ;;
|
|
|
|
+ 12.*|15.*)
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+ ;;
|
|
|
|
+ *)
|
2019-12-11 15:13:01 +01:00
|
|
|
+ fail "Unhandled SLE version: $TARGET_VERSION"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
+ # Depending on the distro we run, we may have some preliminary things to do
|
|
|
|
+ . /etc/os-release
|
|
|
|
+ case "$VERSION_ID" in
|
|
|
|
+ 15*)
|
|
|
|
+ # on SLE 15 we need to symlink the two path to the RPM DB or the GPG
|
|
|
|
+ # key won't be found.
|
|
|
|
+ mkdir -p "$ROOT/usr/lib/sysimage/rpm"
|
|
|
|
+ mkdir -p "$ROOT/var/lib"
|
|
|
|
+ ln -s ../../usr/lib/sysimage/rpm "$ROOT/var/lib"
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
+ # First copy the SUSE GPG keys from the host to the new root
|
|
|
|
+ rpm -qa gpg-pubkey\* --qf "%{name}-%{version}-%{release}: %{summary}\n" | \
|
|
|
|
+ grep 'gpg(SuSE Package Signing Key <build@suse.de>)' | \
|
|
|
|
+ while read -r line; do
|
|
|
|
+ key=$(echo $line | cut -d ':' -f 1)
|
|
|
|
+ tmpkey=$(mktemp)
|
|
|
|
+ rpm -qi $key | sed -n '/BEGIN/,/END/p' > "$tmpkey"
|
|
|
|
+ rpm --root "$ROOT" --import "$tmpkey"
|
|
|
|
+ rm "$tmpkey"
|
|
|
|
+ done
|
|
|
|
+
|
|
|
|
+ # SUSE Connect adds the repositories, and refreshes them,
|
|
|
|
+ # but requires the GPG key to be already imported
|
|
|
|
+ CONNECT_ARGS=
|
|
|
|
+ if test -n "$REG_CODE"; then
|
|
|
|
+ CONNECT_ARGS="$CONNECT_ARGS -r $REG_CODE"
|
|
|
|
+ fi
|
|
|
|
+ if test -n "$URL"; then
|
|
|
|
+ CONNECT_ARGS="$CONNECT_ARGS --url $URL"
|
|
|
|
+ fi
|
2019-12-11 15:13:01 +01:00
|
|
|
+
|
|
|
|
+ PATTERN=Minimal
|
|
|
|
+ case "$TARGET_VERSION" in
|
|
|
|
+ 12*)
|
|
|
|
+ $RUN SUSEConnect -p "$PRODUCT/$TARGET_VERSION/$ARCH" --root "$ROOT" $CONNECT_ARGS
|
|
|
|
+ ;;
|
|
|
|
+ 15*)
|
|
|
|
+ # Due to SLE 15 modules we need to add the product first, let it fail,
|
|
|
|
+ # add the basesystem
|
|
|
|
+ set +e
|
|
|
|
+ $RUN SUSEConnect -p "$PRODUCT/$TARGET_VERSION/$ARCH" --root "$ROOT" $CONNECT_ARGS
|
|
|
|
+ set -e
|
|
|
|
+ $RUN SUSEConnect -p "sle-module-basesystem/$TARGET_VERSION/$ARCH" --root "$ROOT" $CONNECT_ARGS
|
|
|
|
+ PATTERN=base
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+ # Then we install what we need
|
2019-12-11 15:13:01 +01:00
|
|
|
+ call_zypper -n in --auto-agree-with-licenses -t pattern $PATTERN
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2019-12-11 15:13:01 +01:00
|
|
|
+ # Create the baseproduct symlink if missing
|
|
|
|
+ if ! test -e "$ROOT/etc/products.d/baseproduct"; then
|
|
|
|
+ ln -s $PRODUCT.prod "$ROOT/etc/products.d/baseproduct"
|
|
|
|
+ fi
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+case "$DISTRO" in
|
|
|
|
+ SLED-*)
|
|
|
|
+ install_sle "SLED" "${DISTRO:5}"
|
|
|
|
+ ;;
|
|
|
|
+ SLED-* | SLES-*)
|
|
|
|
+ install_sle "SLES" "${DISTRO:5}"
|
|
|
|
+ ;;
|
|
|
|
+
|
|
|
|
+ openSUSE-*)
|
2019-12-11 15:13:01 +01:00
|
|
|
+ TARGET_VERSION=${DISTRO:9}
|
|
|
|
+ REPO="http://download.opensuse.org/distribution/$TARGET_VERSION/repo/oss/"
|
|
|
|
+ UPDATE_REPO="http://download.opensuse.org/update/$TARGET_VERSION/"
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+ call_zypper ar "$REPO" "openSUSE"
|
|
|
|
+ call_zypper ar "$UPDATE_REPO" "openSUSE udpate"
|
|
|
|
+ call_zypper in --no-recommends -t pattern base
|
|
|
|
+ ;;
|
|
|
|
+esac
|
|
|
|
+
|
|
|
|
+if test "$DRY_RUN" != "yes"; then
|
|
|
|
+ echo "pts/0" >> "$ROOT/etc/securetty"
|
|
|
|
+ chroot "$ROOT" /usr/bin/passwd
|
|
|
|
+fi
|
2020-12-02 05:12:13 +01:00
|
|
|
Index: libvirt-6.10.0/docs/manpages/virt-create-rootfs.rst
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2020-12-02 05:12:13 +01:00
|
|
|
+++ libvirt-6.10.0/docs/manpages/virt-create-rootfs.rst
|
2020-01-16 02:52:12 +01:00
|
|
|
@@ -0,0 +1,88 @@
|
|
|
|
+==================
|
|
|
|
+virt-create-rootfs
|
|
|
|
+==================
|
|
|
|
+
|
|
|
|
+---------------------------------------------------------
|
|
|
|
+A tool to create a root file system for distro containers
|
|
|
|
+---------------------------------------------------------
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+:Manual section: 1
|
|
|
|
+:Manual group: Virtualization Support
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+.. contents::
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+SYNOPSIS
|
|
|
|
+========
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``virt-create-rootfs`` [*OPTION*]
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+DESCRIPTION
|
|
|
|
+===========
|
|
|
|
+
|
|
|
|
+The ``virt-create-rootfs`` program is a shell script setting up a root file
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+system for a distribution container.
|
|
|
|
+
|
|
|
|
+The basic structure of most virt-create-rootfs usage is:
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+ ``virt-create-rootfs`` -r /path/to/root -d distro-name
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+OPTIONS
|
|
|
|
+=======
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``-h``, ``--help``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Display command line help usage then exit.
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``-r``, ``--root``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Set the path where to create the new root file system.
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``-d``, ``--distro``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Set the name of distribution to use for the root file system.
|
|
|
|
+
|
|
|
|
+As of now, only SLED-I<XXX>, SLES-I<XXX> and openSUSE-I<XXX> are implemented
|
|
|
|
+where I<XXX> is the version number. Note that SUSEConnect is required to
|
|
|
|
+handle SLE distributions.
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``-a``, ``--arch``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Set the target architecture of the root file system to either i586 or x86_64.
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``-c``, ``--regcode``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Set the registration code for the product to install in the root file system.
|
|
|
|
+For SLE distributions, use a registration code from SUSE Customer Center.
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``-u``, ``--url``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+For SLE distributions, set the registration server to use.
|
|
|
|
+Default: http://scc.suse.com.
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+``--dry-run``
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Don't do anything, just report what would be done.
|
|
|
|
+
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+COPYRIGHT
|
|
|
|
+=========
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
|
|
|
+Copyright (C) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
+
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+LICENSE
|
|
|
|
+=======
|
|
|
|
+
|
|
|
|
+``virt-create-rootfs`` is distributed under the terms of the GNU LGPL v2+.
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+This is free software; see the source for copying conditions. There
|
|
|
|
+is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
+PURPOSE
|
|
|
|
+
|
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+SEE ALSO
|
|
|
|
+========
|
Accepting request 453025 from home:jfehlig:branches:Virtualization
- Fix dom0 ballooning with Xen >= 4.8
libxl-dom0-balloon-fix.patch
bsc#1020755
- SLE12 SP2 bugs merged via version updates of the Factory libvirt
package:
bsc#996020, bsc#987002, bsc#997278, bsc#998005, bsc#998389,
bsc#1001446, bsc#1001698, bsc#1005288, bsc#1013991, bsc#1016253,
bsc#1017086, bsc#1017762, bsc#1018189
- virt-create-rootfs is a temporary SLE-only hack that was never
added to the Factory libvirt package, causing it to be dropped
when rebasing SLE on Factory. Add it now but only apply
associated patch when building for SLE.
virt-create-rootfs.patch
bsc#995981
OBS-URL: https://build.opensuse.org/request/show/453025
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=579
2017-01-27 19:41:04 +01:00
|
|
|
+
|
2020-01-16 02:52:12 +01:00
|
|
|
+virsh(1), `https://libvirt.org/ <https://libvirt.org/>`_
|
2020-12-02 05:12:13 +01:00
|
|
|
Index: libvirt-6.10.0/docs/manpages/meson.build
|
2020-09-03 00:47:08 +02:00
|
|
|
===================================================================
|
2020-12-02 05:12:13 +01:00
|
|
|
--- libvirt-6.10.0.orig/docs/manpages/meson.build
|
|
|
|
+++ libvirt-6.10.0/docs/manpages/meson.build
|
2020-11-02 23:08:38 +01:00
|
|
|
@@ -19,6 +19,7 @@ docs_man_files = [
|
2020-09-03 00:47:08 +02:00
|
|
|
{ 'name': 'virt-pki-validate', 'section': '1', 'install': true },
|
|
|
|
{ 'name': 'virt-qemu-run', 'section': '1', 'install': conf.has('WITH_QEMU') },
|
|
|
|
{ 'name': 'virt-xml-validate', 'section': '1', 'install': true },
|
|
|
|
+ { 'name': 'virt-create-rootfs', 'section': '1', 'install': true },
|
|
|
|
|
|
|
|
{ 'name': 'libvirtd', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') },
|
|
|
|
{ 'name': 'virt-sanlock-cleanup', 'section': '8', 'install': conf.has('WITH_SANLOCK') },
|
2020-12-02 05:12:13 +01:00
|
|
|
Index: libvirt-6.10.0/tools/meson.build
|
2020-09-03 00:47:08 +02:00
|
|
|
===================================================================
|
2020-12-02 05:12:13 +01:00
|
|
|
--- libvirt-6.10.0.orig/tools/meson.build
|
|
|
|
+++ libvirt-6.10.0/tools/meson.build
|
2020-09-03 00:47:08 +02:00
|
|
|
@@ -149,6 +149,8 @@ else
|
|
|
|
virsh_icon_res = []
|
|
|
|
endif
|
|
|
|
|
|
|
|
+install_data('virt-create-rootfs', install_dir: bindir, install_mode: 'rwxr-xr-x',)
|
|
|
|
+
|
|
|
|
executable(
|
|
|
|
'virsh',
|
|
|
|
[
|