committing in some prelim stuff for cross-distro guest
This commit is contained in:
parent
0682137b21
commit
5017d76064
1
bdisk/basedistro/antergos.py
Symbolic link
1
bdisk/basedistro/antergos.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
archlinux.py
|
1
bdisk/basedistro/arch.py
Symbolic link
1
bdisk/basedistro/arch.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
archlinux.py
|
59
bdisk/basedistro/archlinux.py
Normal file
59
bdisk/basedistro/archlinux.py
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#!/usr/bin/env python3.6
|
||||||
|
|
||||||
|
# Supported initsys values:
|
||||||
|
# systemd
|
||||||
|
# Possible future inclusions:
|
||||||
|
# openrc
|
||||||
|
# runit
|
||||||
|
# sinit
|
||||||
|
# s6
|
||||||
|
# shepherd
|
||||||
|
initsys = 'systemd'
|
||||||
|
|
||||||
|
# This will be run before the regular packages are installed. It can be
|
||||||
|
# whatever script you like, as long as it has the proper shebang and doesn't
|
||||||
|
# need additional packages installed.
|
||||||
|
pkg_mgr_prep = """#!/bin/bash
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Special values:
|
||||||
|
# {PACKAGE} = the package name
|
||||||
|
# {VERSION} = the version specified in the <package version= ...> attribute
|
||||||
|
# {REPO} = the repository specified in the <package repo= ...> attribute
|
||||||
|
# If check_cmds are needed to run before installing, set pre_check to True.
|
||||||
|
# Return code 0 means the package is installed already, anything else means we
|
||||||
|
# should try to install it.
|
||||||
|
#### AUR SUPPORT ####
|
||||||
|
packager = {'pre_check': False,
|
||||||
|
'sys_update': ['/usr/bin/aurman', '-S', '-u'],
|
||||||
|
'sync_cmd': ['/usr/bin/aurman', '-S', '-y', '-y'],
|
||||||
|
'check_cmds': {'versioned': ['/usr/bin/pacman',
|
||||||
|
'-Q', '-s',
|
||||||
|
'{PACKAGE}'],
|
||||||
|
'unversioned': ['/usr/bin/pacman',
|
||||||
|
'-Q', '-s',
|
||||||
|
'{PACKAGE}']
|
||||||
|
},
|
||||||
|
'update_cmds': {'versioned': ['/usr/bin/pacman',
|
||||||
|
'-S', '-u',
|
||||||
|
'{PACKAGE}'],
|
||||||
|
'unversioned': ['/usr/bin/pacman',
|
||||||
|
'-S', '-u',
|
||||||
|
'{PACKAGE}']
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
# These are packages *required* to exist on the base guest, no questions asked.
|
||||||
|
# TODO: can this be trimmed down?
|
||||||
|
prereqs = ['arch-install-scripts', 'archiso', 'bzip2', 'coreutils',
|
||||||
|
'customizepkg-scripting', 'cronie', 'dhclient', 'dhcp', 'dhcpcd',
|
||||||
|
'dosfstools', 'dropbear', 'efibootmgr', 'efitools', 'efivar',
|
||||||
|
'file', 'findutils', 'iproute2', 'iputils', 'libisoburn',
|
||||||
|
'localepurge', 'lz4', 'lzo', 'lzop', 'mkinitcpio-nbd',
|
||||||
|
'mkinitcpio-nfs-utils', 'mkinitcpio-utils', 'nbd', 'ms-sys',
|
||||||
|
'mtools', 'net-tools', 'netctl', 'networkmanager', 'pv',
|
||||||
|
'python', 'python-pyroute2', 'rsync', 'sed', 'shorewall',
|
||||||
|
'squashfs-tools', 'sudo', 'sysfsutils',
|
||||||
|
'syslinux', 'traceroute']
|
||||||
|
|
1
bdisk/basedistro/manjaro.py
Symbolic link
1
bdisk/basedistro/manjaro.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
archlinux.py
|
@ -502,6 +502,54 @@
|
|||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<!-- END BDISK/PROFILE/SOURCES -->
|
<!-- END BDISK/PROFILE/SOURCES -->
|
||||||
|
<!-- BDISK/PROFILE/PACKAGES -->
|
||||||
|
<xs:element name="packages" maxOccurs="1" minOccurs="0">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<!-- BDISK/PROFILE/PACKAGES/PACKAGE -->
|
||||||
|
<xs:element name="package" maxOccurs="unbounded" minOccurs="1">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="version" type="xs:string" use="optional"/>
|
||||||
|
<xs:attribute name="repo" type="xs:string" use="optional"/>
|
||||||
|
<!-- Default is "both" -->
|
||||||
|
<xs:attribute name="arch" use="optional">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:pattern value="(i686|x86(_64)?|32|64|both)"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:attribute>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<!-- END BDISK/PROFILE/PACKAGES/PACKAGE -->
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<!-- END BDISK/PROFILE/PACKAGES -->
|
||||||
|
<!-- BDISK/PROFILE/SERVICES -->
|
||||||
|
<xs:element name="services" maxOccurs="1" minOccurs="0">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<!-- BDISK/PROFILE/SERVICES/SERVICE -->
|
||||||
|
<xs:element name="service" maxOccurs="unbounded" minOccurs="1">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="enabled" type="xs:boolean" use="required"/>
|
||||||
|
<xs:attribute name="blacklisted" type="xs:boolean" use="optional"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<!-- END BDISK/PROFILE/SERVICES/SERVICE -->
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
<!-- END BDISK/PROFILE/SERVICES -->
|
||||||
<!-- BDISK/PROFILE/BUILD -->
|
<!-- BDISK/PROFILE/BUILD -->
|
||||||
<xs:element name="build" maxOccurs="1" minOccurs="1">
|
<xs:element name="build" maxOccurs="1" minOccurs="1">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
@ -648,7 +696,8 @@
|
|||||||
<xs:attribute name="passphrase" use="optional">
|
<xs:attribute name="passphrase" use="optional">
|
||||||
<xs:simpleType>
|
<xs:simpleType>
|
||||||
<xs:restriction base="xs:string">
|
<xs:restriction base="xs:string">
|
||||||
<xs:pattern value="[!"#$%&\\'\(\)\*\+,\-\./0123456789:;<=>\?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\]\^_`abcdefghijklmnopqrstuvwxyz\{\|\}~ ]+"/>
|
<xs:pattern
|
||||||
|
value="[!"#$%&\\'\(\)\*\+,\-\./0123456789:;<=>\?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\]\^_`abcdefghijklmnopqrstuvwxyz\{\|\}~ ]+"/>
|
||||||
</xs:restriction>
|
</xs:restriction>
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
</xs:attribute>
|
</xs:attribute>
|
||||||
|
@ -30,7 +30,8 @@
|
|||||||
items. See the manual for more information. NO btags within the patterns is allowed. -->
|
items. See the manual for more information. NO btags within the patterns is allowed. -->
|
||||||
<regexes>
|
<regexes>
|
||||||
<pattern id="tarball_x86_64">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-x86_64\.tar\.gz$</pattern>
|
<pattern id="tarball_x86_64">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-x86_64\.tar\.gz$</pattern>
|
||||||
<pattern id="sig_x86_64">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-x86_64\.tar\.gz\.sig$</pattern>
|
<pattern id="sig_x86_64">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-x86_64\.tar\.gz\.sig$
|
||||||
|
</pattern>
|
||||||
<pattern id="tarball_i686">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-i686\.tar\.gz$</pattern>
|
<pattern id="tarball_i686">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-i686\.tar\.gz$</pattern>
|
||||||
<pattern id="sig_i686">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-i686\.tar\.gz\.sig$</pattern>
|
<pattern id="sig_i686">archlinux-bootstrap-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-i686\.tar\.gz\.sig$</pattern>
|
||||||
</regexes>
|
</regexes>
|
||||||
@ -82,6 +83,9 @@
|
|||||||
flags="regex latest">{regex%sig_i686}</sig>
|
flags="regex latest">{regex%sig_i686}</sig>
|
||||||
</source>
|
</source>
|
||||||
</sources>
|
</sources>
|
||||||
|
<packages>
|
||||||
|
<package repo="core">openssh</package>
|
||||||
|
</packages>
|
||||||
<build its_full_of_stars="true">
|
<build its_full_of_stars="true">
|
||||||
<paths>
|
<paths>
|
||||||
<base>{variable%bdisk_root}/base</base>
|
<base>{variable%bdisk_root}/base</base>
|
||||||
|
BIN
external/aurman-2.9.37-1-any.pkg.tar.xz
vendored
Normal file
BIN
external/aurman-2.9.37-1-any.pkg.tar.xz
vendored
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user