Skip to content

Commit 2ccc40a

Browse files
committed
distros: add openSUSE rfs method
1 parent 59ede6e commit 2ccc40a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

distro_extractor/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Also, many distributions provide mirrors at different geographical places and UR
3939
- deb: `DEBOOTSTRAP_SUITE=una DEBOOTSTRAP_SCRIPT=stable DEBOOTSTRAP_MIRROR='https://mirrors.edge.kernel.org/linuxmint-packages/' make extract`
4040
- MX Linux (https://mxlinux.org/) _deb_
4141
- deb: `DEBOOTSTRAP_SUITE=bullseye DEBOOTSTRAP_SCRIPT=stable DEBOOTSTRAP_MIRROR='http://mxrepo.com/mx/repo/' make extract`
42+
- openSUSE (https://www.opensuse.org/) _zypp_
43+
- rfs: `DISTRO=openSUSE DISTRO_ROOTFS=/path/to/openSUSE-Leap-15.1-OpenStack-rootfs.x86_64.tar.xz make extract`
4244
- Pop!_OS (https://system76.com/pop/) _deb_
4345
- deb: `DEBOOTSTRAP_SUITE=jammy DEBOOTSTRAP_SCRIPT=stable DEBOOTSTRAP_MIRROR='http://apt.pop-os.org/release' make extract`
4446
- Ubuntu (https://ubuntu.com/) _deb_

distro_extractor/openSUSE/inc.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
PM=zypp
4+
5+
function distro_install_command() {
6+
packages=$(cat "$NICE_PRESET_PATH/packages.${PM}.txt" | xargs)
7+
echo "zypper install -y $packages"
8+
}

0 commit comments

Comments
 (0)