Browse Source

Add arch support

pull/2/head
j3s 11 months ago
parent
commit
a30f2d9a12
  1. 1
      .gitignore
  2. 153
      LICENSE
  3. 17
      README
  4. 64
      alpine/3.12/configure
  5. 3
      alpine/3.12/packages
  6. 64
      alpine/3.13/configure
  7. 3
      alpine/3.13/packages
  8. 6
      alpine/build
  9. 0
      alpine/config/configure
  10. 0
      alpine/config/packages
  11. 0
      alpine/output/.gitkeep
  12. 1
      archlinux/README
  13. 166
      archlinux/build
  14. 67
      archlinux/mkinitcpio.conf
  15. 101
      archlinux/pacman.conf
  16. 9
      coreos/build
  17. 2
      debian/build

1
.gitignore vendored

@ -2,3 +2,4 @@
**/packer_cache
*.qcow2
*.xz
archlinux/root

153
LICENSE

@ -1,23 +1,21 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
@ -72,7 +60,7 @@ modification follow.
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
@ -635,41 +633,30 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.

17
README

@ -4,36 +4,35 @@ This repository helps make Cyberia's images that don't natively understand cloud
git clone git@cyberia.club:services/capsul-images
cd capsul-images
packer, libvirt, archlinux utils perhaps, nbd
== MAKE ALPINE IMAGE ==
cd alpine
./build
./build 3.14
== MAKE OPENBSD IMAGE ==
cd openbsd
./build
./build 6.9
== MAKE GUIX SYSTEM IMAGE
cd guixsystem
./build
./build 1.3.0
== MOVE IMAGES TO BAIKAL ==
== MAKE ARCH IMAGE
scp */output-qemu/*.qcow2 cyberian@baikal.cyberia.club:
ssh cyberian@baikal.cyberia.club:
sudo -i
mv /home/cyberian/*.qcow2 /tank/img/
# add the new images to capsul-create (it's in gtfo)
cd archlinux
./build
== RESOURCES ==
- https://github.com/alpinelinux/alpine-make-vm-image
- https://curlybracket.co.uk/blog/running-alpine-linux-on-digital-ocean/
- https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/images

64
alpine/3.12/configure vendored

@ -1,64 +0,0 @@
#!/bin/sh
user='cyberian'
homedir="/home/$user"
cat > /etc/motd <<-EOF
welcome, cyberian ^(;,;)^
your machine awaits
EOF
# networking
cat > /etc/network/interfaces <<-EOF
iface lo inet loopback
iface eth0 inet dhcp
EOF
ln -s networking /etc/init.d/net.lo
ln -s networking /etc/init.d/net.eth0
rc-update add net.eth0 default
rc-update add net.lo boot
# ssh & privs
rc-update add sshd default
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
adduser "$user" -D -s /bin/ash
addgroup "$user" wheel
mkdir -p "$homedir/.ssh"
chmod 700 "$homedir/.ssh"
chown "$user"."$user" "$homedir/.ssh"
echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
# startup script
cat > /bin/capsul-init <<-EOF
#!/bin/sh
mount -t iso9660 -o ro /dev/sr0 /mnt
cat > "$homedir/.ssh/authorized_keys" <<EOW
\$(grep '\- ssh' /mnt/user-data | cut -d ' ' -f 8-)
EOW
chmod 600 "$homedir/.ssh/authorized_keys"
chown "$user"."$user" "$homedir/.ssh/authorized_keys"
pass="\$(head /dev/urandom | tr -dc a-z0-9 | head -c30)"
echo "cyberian:\$pass" | chpasswd
resize2fs /dev/vda
apk del e2fsprogs-extra
rc-update del capsul-init default
rm /etc/init.d/capsul-init
umount /mnt
exit 0
EOF
# openrc @ boot-time
cat > /etc/init.d/capsul-init <<-EOF
#!/sbin/openrc-run
depend() {
need net.eth0
}
command="/bin/capsul-init"
command_args=""
pidfile="/tmp/capsul-init.pid"
EOF
chmod +x /etc/init.d/capsul-init
chmod +x /bin/capsul-init
rc-update add capsul-init default

3
alpine/3.12/packages

@ -1,3 +0,0 @@
openssh
sudo
e2fsprogs-extra

64
alpine/3.13/configure vendored

@ -1,64 +0,0 @@
#!/bin/sh
user='cyberian'
homedir="/home/$user"
cat > /etc/motd <<-EOF
welcome, cyberian ^(;,;)^
your machine awaits
EOF
# networking
cat > /etc/network/interfaces <<-EOF
iface lo inet loopback
iface eth0 inet dhcp
EOF
ln -s networking /etc/init.d/net.lo
ln -s networking /etc/init.d/net.eth0
rc-update add net.eth0 default
rc-update add net.lo boot
# ssh & privs
rc-update add sshd default
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
adduser "$user" -D -s /bin/ash
addgroup "$user" wheel
mkdir -p "$homedir/.ssh"
chmod 700 "$homedir/.ssh"
chown "$user"."$user" "$homedir/.ssh"
echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
# startup script
cat > /bin/capsul-init <<-EOF
#!/bin/sh
mount -t iso9660 -o ro /dev/sr0 /mnt
cat > "$homedir/.ssh/authorized_keys" <<EOW
\$(grep '\- ssh' /mnt/user-data | cut -d ' ' -f 8-)
EOW
chmod 600 "$homedir/.ssh/authorized_keys"
chown "$user"."$user" "$homedir/.ssh/authorized_keys"
pass="\$(head /dev/urandom | tr -dc a-z0-9 | head -c30)"
echo "cyberian:\$pass" | chpasswd
resize2fs /dev/vda
apk del e2fsprogs-extra
rc-update del capsul-init default
rm /etc/init.d/capsul-init
umount /mnt
exit 0
EOF
# openrc @ boot-time
cat > /etc/init.d/capsul-init <<-EOF
#!/sbin/openrc-run
depend() {
need net.eth0
}
command="/bin/capsul-init"
command_args=""
pidfile="/tmp/capsul-init.pid"
EOF
chmod +x /etc/init.d/capsul-init
chmod +x /bin/capsul-init
rc-update add capsul-init default

3
alpine/3.13/packages

@ -1,3 +0,0 @@
openssh
sudo
e2fsprogs-extra

6
alpine/build

@ -5,8 +5,8 @@ version="$1"
./alpine-make-vm-image \
-b "v$version" \
-p "$(cat $version/packages)" \
-p "$(cat config/packages)" \
-f qcow2 \
-c \
"$version/root.img.qcow2" \
-- ./$version/configure
"output/root.img.qcow2" \
-- ./config/configure

0
alpine/3.11/configure → alpine/config/configure vendored

0
alpine/3.11/packages → alpine/config/packages

0
coreos/stable/.gitkeep → alpine/output/.gitkeep

1
archlinux/README

@ -0,0 +1 @@
source: https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/images/archlinux

166
archlinux/build

@ -0,0 +1,166 @@
#!/bin/sh -eux
root=root
arch=x86_64
cleanup() {
# The order here is important if you don't want to hose your mounts
umount -Rf "$root"/boot || true
umount -Rf "$root" || true
qemu-nbd --disconnect /dev/nbd0 || true
rm -rf "$root" || true
}
mkdir -p "$arch"
qemu-img create -f qcow2 $arch/root.img.qcow2 20G
modprobe nbd
qemu-nbd --connect=/dev/nbd0 $arch/root.img.qcow2
trap cleanup EXIT
dd if=/usr/lib/syslinux/bios/mbr.bin of=/dev/nbd0 bs=1 count=440
sfdisk --no-reread /dev/nbd0 << EOF
1M,100M,L,*
,,L
EOF
mkdir -p "$root"
mkfs.ext4 /dev/nbd0p1
mkfs.ext4 /dev/nbd0p2
mount /dev/nbd0p2 "$root"
mkdir -p "$root"/boot
mount /dev/nbd0p1 "$root"/boot
pacstrap root base base-devel git openssh mkinitcpio linux syslinux pacutils
run_root() {
local cmd="$@"
chroot $root /bin/bash -c "$cmd"
}
run_normal() {
local cmd="$@"
chroot --userspec=$SUDO_UID:$SUDO_GID \
$root \
/bin/bash -c "cd /home/cyberian && $cmd"
}
echo 'Server = http://lug.mtu.edu/archlinux/$repo/os/$arch' >> $root/etc/pacman.d/mirrorlist
echo '127.0.0.1 localhost.localdomain localhost' > $root/etc/hosts
echo '::1 localhost.localdomain localhost' >> $root/etc/hosts
mount --bind /proc $root/proc
mount --bind /sys $root/sys
mount --bind /dev $root/dev
mount --bind /dev/pts $root/dev/pts
mount --bind /dev/shm $root/dev/shm
mount --bind /run $root/run
cp mkinitcpio.conf $root/etc
cp pacman.conf $root/etc
reflector --protocol https --latest 30 --sort rate --save $root/etc/pacman.d/mirrorlist
mkdir -p $root/etc/pacman.d/hooks/
ln -s /dev/null $root/etc/pacman.d/hooks/90-linux.hook
sed -i 's/#en_US.UTF-8/en_US.UTF-8/' $root/etc/locale.gen
run_root locale-gen
cat >"$root"/etc/systemd/network/25-ens3.network <<EOF
[Match]
Name=ens3
[Network]
DHCP=yes
EOF
run_root systemctl enable systemd-networkd.service
run_root systemctl enable systemd-resolved.service
run_root systemctl enable systemd-timesyncd.service
run_root mkinitcpio -p linux
run_root groupadd sudo
run_root useradd -mG sudo cyberian
run_root passwd -d cyberian
echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> $root/etc/sudoers
# why?
echo 'source /etc/profile.d/perlbin.sh' > $root/home/cyberian/.bashrc
echo 'export EDITOR=true' > $root/home/cyberian/.bashrc
run_root mkdir -p "/home/cyberian/.ssh"
run_root chmod 700 "/home/cyberian/.ssh"
run_root chown cyberian "/home/cyberian/.ssh"
sed -e 's/#PasswordAuthentication yes/PasswordAuthentication no/' -i $root/etc/ssh/sshd_config
run_root systemctl enable sshd
cat >> "$root"/etc/fstab << EOF
/dev/vda1 /boot ext4 rw,relatime,data=ordered 0 0
/dev/vda2 / ext4 rw,relatime,data=ordered 0 0
EOF
extlinux -i "$root"/boot
cat > "$root"/boot/extlinux.conf <<- EOF
default archlinux
label archlinux
linux vmlinuz-linux
initrd initramfs-linux.img
append root=/dev/vda2 rw quiet
EOF
echo "makeopts=(--skippgpcheck)" >> $root/etc/makepkg.conf
run_normal curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz
run_normal tar xf yay.tar.gz
run_normal 'cd yay && env GOCACHE=/tmp/cache makepkg -si --noconfirm --skippgpcheck'
run_normal rm -rf /tmp/cache yay yay.tar.gz
# capsul-init
cat > $root/etc/motd <<-EOF
welcome, cyberian ^(;,;)^
your machine awaits
btw this is arch
EOF
cat > $root/bin/capsul-init <<-EOF
#!/bin/sh
mount -t iso9660 -o ro /dev/sr0 /mnt
cat > "/home/cyberian/.ssh/authorized_keys" <<EOW
\$(grep '\- ssh' /mnt/user-data | cut -d ' ' -f 8-)
EOW
chmod 600 "/home/cyberian/.ssh/authorized_keys"
chown cyberian.cyberian "/home/cyberian/.ssh/authorized_keys"
resize2fs /dev/vda2
systemctl disable capsul-init
systemctl daemon-reload
rm /etc/systemd/system/capsul-init.service
rm /bin/capsul-init
EOF
chmod +x $root/bin/capsul-init
cat > $root/etc/systemd/system/capsul-init.service <<-EOF
[Unit]
Description=init capsul and EXPLODE
[Service]
Type=oneshot
ExecStart=/bin/capsul-init
[Install]
WantedBy=multi-user.target
EOF
run_root systemctl daemon-reload
run_root systemctl enable capsul-init
# cleanup
run_root rm -f /etc/ssh/*key /etc/ssh/*pub
find $root/var/db -type f -name "dhclient.leases.*" | xargs rm -f
run_root pacman --noconfirm -Rs go
paccache -rk0 -c "$root/var/cache/pacman/pkg"
pkill gpg-agent || true

67
archlinux/mkinitcpio.conf

@ -0,0 +1,67 @@
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES="piix ide_disk reiserfs"
MODULES="virtio virtio_blk virtio_pci virtio_net"
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS="base"
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS="base udev autodetect block filesystems"
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS="base udev block filesystems"
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev block mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev block lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

101
archlinux/pacman.conf

@ -0,0 +1,101 @@
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = linux linux-api-headers linux-firmware util-linux libutil-linux mkinitcpio
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
Color
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
#[multilib]
#Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

9
coreos/build

@ -1,9 +0,0 @@
#!/bin/sh
case "$1" in
stable) url='https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/33.20210104.3.1/x86_64/fedora-coreos-33.20210104.3.1-openstack.x86_64.qcow2.xz' ;;
*) echo "not found" && exit 1 ;;
esac
wget "$url" -O "$1/root.img.qcow2.xz"
unxz "$1/root.img.qcow2.xz"

2
debian/build vendored

@ -1,7 +1,7 @@
#!/bin/sh
case "$1" in
10) url='https://cloud.debian.org/images/cloud/buster/20201023-432/debian-10-genericcloud-amd64-20201023-432.qcow2' ;;
10) url='https://cloud.debian.org/images/cloud/buster/20210721-710/debian-10-genericcloud-amd64-20210721-710.qcow2' ;;
*) echo "not found" && exit 1 ;;
esac

Loading…
Cancel
Save