Skip to content

Commit 0be9616

Browse files
committed
add: Add minimum profile
1 parent 4720196 commit 0be9616

17 files changed

Lines changed: 210 additions & 0 deletions

File tree

alteriso/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# AlterISO
22

33
フォークしたarchisoをターゲットにしたプロファイル生成を行います。
4+
5+
## TODO
6+
7+
- moduleからprofiledefの既定値を更新する方法を作る
8+
- iso/arch/の中にalterisoの固有情報を書き込む
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LANG=C.UTF-8
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
3+
script_cmdline() {
4+
local param
5+
for param in $(</proc/cmdline); do
6+
case "${param}" in
7+
script=*)
8+
echo "${param#*=}"
9+
return 0
10+
;;
11+
esac
12+
done
13+
}
14+
15+
automated_script() {
16+
local script rt
17+
script="$(script_cmdline)"
18+
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
19+
if [[ "${script}" =~ ^((http|https|ftp|tftp)://) ]]; then
20+
# there's no synchronization for network availability before executing this script
21+
printf '%s: waiting for network-online.target\n' "$0"
22+
until systemctl --quiet is-active network-online.target; do
23+
sleep 1
24+
done
25+
printf '%s: downloading %s\n' "$0" "${script}"
26+
curl "${script}" --location --retry-connrefused --retry 10 --fail -s -o /tmp/startup_script
27+
rt=$?
28+
else
29+
cp "${script}" /tmp/startup_script
30+
rt=$?
31+
fi
32+
if [[ ${rt} -eq 0 ]]; then
33+
chmod +x /tmp/startup_script
34+
printf '%s: executing automated script\n' "$0"
35+
# note that script is executed when other services (like pacman-init) may be still in progress, please
36+
# synchronize to "systemctl is-system-running --wait" when your script depends on other services
37+
/tmp/startup_script
38+
fi
39+
fi
40+
}
41+
42+
if [[ $(tty) == "/dev/tty1" ]]; then
43+
automated_script
44+
fi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
disable-ccid
2+
disable-pinpad
3+
pcsc-driver /usr/lib/libpcsclite.so
4+
pcsc-shared
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# fix for screen readers
2+
if grep -Fqa 'accessibility=' /proc/cmdline &> /dev/null; then
3+
setopt SINGLE_LINE_ZLE
4+
fi
5+
6+
~/.automated_script.sh
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
memtest86+
2+
memtest86+-efi
3+
edk2-shell
4+
efibootmgr
5+
grub
6+
syslinux
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
linux-firmware
2+
linux-firmware-marvell
3+
b43-fwcutter
4+
broadcom-wl
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
linux
2+
linux-headers
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sudo
2+
nano
3+
less
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#
2+
# /etc/pacman.conf
3+
#
4+
# See the pacman.conf(5) manpage for option and repository directives
5+
6+
#
7+
# GENERAL OPTIONS
8+
#
9+
[options]
10+
# The following paths are commented out with their default values listed.
11+
# If you wish to use different paths, uncomment and update the paths.
12+
#RootDir = /
13+
#DBPath = /var/lib/pacman/
14+
#CacheDir = /var/cache/pacman/pkg/
15+
#LogFile = /var/log/pacman.log
16+
#GPGDir = /etc/pacman.d/gnupg/
17+
#HookDir = /etc/pacman.d/hooks/
18+
HoldPkg = pacman glibc
19+
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
20+
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
21+
#CleanMethod = KeepInstalled
22+
Architecture = auto
23+
24+
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
25+
#IgnorePkg =
26+
#IgnoreGroup =
27+
28+
#NoUpgrade =
29+
#NoExtract =
30+
31+
# Misc options
32+
#UseSyslog
33+
#Color
34+
#NoProgressBar
35+
# We cannot check disk space from within a chroot environment
36+
#CheckSpace
37+
#VerbosePkgLists
38+
ParallelDownloads = 5
39+
#DownloadUser = alpm
40+
#DisableSandbox
41+
42+
# By default, pacman accepts packages signed by keys that its local keyring
43+
# trusts (see pacman-key and its man page), as well as unsigned packages.
44+
SigLevel = Required DatabaseOptional
45+
LocalFileSigLevel = Optional
46+
#RemoteFileSigLevel = Required
47+
48+
# NOTE: You must run `pacman-key --init` before first using pacman; the local
49+
# keyring can then be populated with the keys of all official Arch Linux
50+
# packagers with `pacman-key --populate archlinux`.
51+
52+
#
53+
# REPOSITORIES
54+
# - can be defined here or included from another file
55+
# - pacman will search repositories in the order defined here
56+
# - local/custom mirrors can be added here or in separate files
57+
# - repositories listed first will take precedence when packages
58+
# have identical names, regardless of version number
59+
# - URLs will have $repo replaced by the name of the current repo
60+
# - URLs will have $arch replaced by the name of the architecture
61+
#
62+
# Repository entries are of the format:
63+
# [repo-name]
64+
# Server = ServerName
65+
# Include = IncludePath
66+
#
67+
# The header [repo-name] is crucial - it must be present and
68+
# uncommented to enable the repo.
69+
#
70+
71+
# The testing repositories are disabled by default. To enable, uncomment the
72+
# repo name header and Include lines. You can add preferred servers immediately
73+
# after the header, and they will be used before the default mirrors.
74+
75+
#[core-testing]
76+
#Include = /etc/pacman.d/mirrorlist
77+
78+
[core]
79+
Include = /etc/pacman.d/mirrorlist
80+
81+
#[extra-testing]
82+
#Include = /etc/pacman.d/mirrorlist
83+
84+
[extra]
85+
Include = /etc/pacman.d/mirrorlist
86+
87+
# If you want to run 32 bit applications on your x86_64 system,
88+
# enable the multilib repositories as required here.
89+
90+
#[multilib-testing]
91+
#Include = /etc/pacman.d/mirrorlist
92+
93+
#[multilib]
94+
#Include = /etc/pacman.d/mirrorlist
95+
96+
# An example of a custom package repository. See the pacman manpage for
97+
# tips on creating your own repositories.
98+
#[custom]
99+
#SigLevel = Optional TrustAll
100+
#Server = file:///home/custompkgs

0 commit comments

Comments
 (0)