Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Christian Rebischke
arch-boxes
Commits
5a95431e
Unverified
Commit
5a95431e
authored
Oct 11, 2019
by
Christian Rebischke
Browse files
fixed format and syntax for various files
Signed-off-by:
Christian Rebischke
<
chris@nullday.de
>
parent
c19e835a
Changes
5
Hide whitespace changes
Inline
Side-by-side
controller.py
View file @
5a95431e
#!/usr/bin/env python
#-*- encoding; utf-8 -*-
#
-*- encoding; utf-8 -*-
#
# Author: Christian Rebischke <chris.rebischke@archlinux.org>
# This file is licensed under GPLv3
...
...
generic-ci.sh
View file @
5a95431e
...
...
@@ -17,7 +17,7 @@ case $1 in
gpg
--with-fingerprint
--with-colons
hashicorp.key |
grep
${
HASHICORP_FINGERPRINT
^^
}
gpg
--import
hashicorp.key
gpg
--verify
"packer_
${
PACKER_CURRENT_VERSION
}
_SHA256SUMS.sig"
"packer_
${
PACKER_CURRENT_VERSION
}
_SHA256SUMS"
grep
linux_amd64
"packer_
${
PACKER_CURRENT_VERSION
}
_SHA256SUMS"
>
packer_SHA256SUM_linux_amd64
grep
linux_amd64
"packer_
${
PACKER_CURRENT_VERSION
}
_SHA256SUMS"
>
packer_SHA256SUM_linux_amd64
sha256sum
--check
--status
packer_SHA256SUM_linux_amd64
unzip
"packer_
${
PACKER_CURRENT_VERSION
}
_linux_amd64.zip"
./packer
--version
...
...
http/install-chroot.sh
View file @
5a95431e
...
...
@@ -6,7 +6,7 @@ set -x
ln
-sf
/usr/share/zoneinfo/UTC /etc/localtime
sed
-i
-e
's/^#\(en_US.UTF-8\)/\1/'
/etc/locale.gen
locale-gen
echo
'LANG=en_US.UTF-8'
>
/etc/locale.conf
echo
'LANG=en_US.UTF-8'
>
/etc/locale.conf
# setting vagrant user credentials
echo
-e
'vagrant\nvagrant'
| passwd
...
...
@@ -14,7 +14,7 @@ useradd -m -U vagrant
echo
-e
'vagrant\nvagrant'
| passwd vagrant
# setting automatic authentication for any action requiring admin rights via Polkit
cat
<<
EOF
>
/etc/polkit-1/rules.d/49-nopasswd_global.rules
cat
<<
EOF
>/etc/polkit-1/rules.d/49-nopasswd_global.rules
polkit.addRule(function(action, subject) {
if (subject.isInGroup("vagrant")) {
return polkit.Result.YES;
...
...
@@ -23,7 +23,7 @@ polkit.addRule(function(action, subject) {
EOF
# setting sudo for vagrant user
cat
<<
EOF
>
/etc/sudoers.d/vagrant
cat
<<
EOF
>/etc/sudoers.d/vagrant
Defaults:vagrant !requiretty
vagrant ALL=(ALL) NOPASSWD: ALL
EOF
...
...
@@ -39,7 +39,7 @@ chmod 0600 /home/vagrant/.ssh/authorized_keys
ln
-s
/dev/null /etc/systemd/network/99-default.link
# setup network
cat
<<
EOF
>
/etc/systemd/network/eth0.network
cat
<<
EOF
>/etc/systemd/network/eth0.network
[Match]
Name=eth0
...
...
@@ -48,7 +48,7 @@ DHCP=ipv4
EOF
# Setup pacman-init.service for clean pacman keyring initialization
cat
<<
EOF
>
/etc/systemd/system/pacman-init.service
cat
<<
EOF
>/etc/systemd/system/pacman-init.service
[Unit]
Description=Initializes Pacman keyring
Wants=haveged.service
...
...
@@ -74,6 +74,6 @@ systemctl enable systemd-networkd
systemctl
enable
systemd-resolved
systemctl
enable
pacman-init.service
grub-install
"
$device
"
grub-install
sed
-i
-e
's/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=1/'
/etc/default/grub
grub-mkconfig
-o
/boot/grub/grub.cfg
http/install.sh
View file @
5a95431e
...
...
@@ -27,7 +27,7 @@ mount "${device}2" /mnt
pacstrap /mnt base linux grub openssh
sudo
polkit haveged
swapon
"
${
device
}
1"
genfstab
-p
/mnt
>>
/mnt/etc/fstab
genfstab
-p
/mnt
>>
/mnt/etc/fstab
swapoff
"
${
device
}
1"
arch-chroot /mnt /bin/bash
provision/write_zeroes.sh
View file @
5a95431e
#/bin/bash
#
!
/bin/bash
set
-e
set
-x
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment