summaryrefslogtreecommitdiff
path: root/parabola-archiso-TEST/root-image/etc
diff options
context:
space:
mode:
Diffstat (limited to 'parabola-archiso-TEST/root-image/etc')
-rw-r--r--parabola-archiso-TEST/root-image/etc/arch-release1
-rw-r--r--parabola-archiso-TEST/root-image/etc/archiso/functions20
-rw-r--r--parabola-archiso-TEST/root-image/etc/hosts9
-rw-r--r--parabola-archiso-TEST/root-image/etc/inittab48
-rw-r--r--parabola-archiso-TEST/root-image/etc/issue5
-rw-r--r--parabola-archiso-TEST/root-image/etc/motd12
-rw-r--r--parabola-archiso-TEST/root-image/etc/pam.d/su6
-rw-r--r--parabola-archiso-TEST/root-image/etc/rc.conf33
-rw-r--r--parabola-archiso-TEST/root-image/etc/rc.d/functions.d/automated_script23
-rw-r--r--parabola-archiso-TEST/root-image/etc/rc.d/functions.d/prepare_locale_gen11
-rw-r--r--parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console25
-rw-r--r--parabola-archiso-TEST/root-image/etc/rc.d/functions.d/symlink_used_block_devices7
-rw-r--r--parabola-archiso-TEST/root-image/etc/sudoers.d/g_wheel1
13 files changed, 201 insertions, 0 deletions
diff --git a/parabola-archiso-TEST/root-image/etc/arch-release b/parabola-archiso-TEST/root-image/etc/arch-release
new file mode 100644
index 0000000..d04512c
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/arch-release
@@ -0,0 +1 @@
+Parabola GNU/Linux-libre Live ISO
diff --git a/parabola-archiso-TEST/root-image/etc/archiso/functions b/parabola-archiso-TEST/root-image/etc/archiso/functions
new file mode 100644
index 0000000..9fffdcb
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/archiso/functions
@@ -0,0 +1,20 @@
+# vim: set ft=sh:
+
+# kernel_cmdline <param> <default>
+# Looks for a parameter on the kernel's boot-time command line.
+#
+# returns: 0 if param was found. Also prints its value if it was a K=V param.
+# 1 if it was not. Also prints value passed as <default>
+#
+kernel_cmdline ()
+{
+ for param in $(/bin/cat /proc/cmdline); do
+ case "${param}" in
+ $1=*) echo "${param##*=}"; return 0 ;;
+ $1) return 0 ;;
+ *) continue ;;
+ esac
+ done
+ [ -n "${2}" ] && echo "${2}"
+ return 1
+}
diff --git a/parabola-archiso-TEST/root-image/etc/hosts b/parabola-archiso-TEST/root-image/etc/hosts
new file mode 100644
index 0000000..ddb2a52
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/hosts
@@ -0,0 +1,9 @@
+#
+# /etc/hosts: static lookup table for host names
+#
+
+#<ip-address> <hostname.domain.org> <hostname>
+127.0.0.1 localhost.localdomain localhost libreiso
+::1 localhost.localdomain localhost libreiso
+
+# End of file
diff --git a/parabola-archiso-TEST/root-image/etc/inittab b/parabola-archiso-TEST/root-image/etc/inittab
new file mode 100644
index 0000000..2bbc494
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/inittab
@@ -0,0 +1,48 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:3:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 -s -n -l /usr/bin/autologin 38400 tty1 linux
+c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
+c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
+c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
+c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
+c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
+
+# Serial Virtual Console for KVM and others VMs
+#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
+
+# Hypervisor Virtual Console for Xen and KVM
+#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/usr/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
+
+# End of file
diff --git a/parabola-archiso-TEST/root-image/etc/issue b/parabola-archiso-TEST/root-image/etc/issue
new file mode 100644
index 0000000..181b704
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/issue
@@ -0,0 +1,5 @@
+
+Parabola GNU/Linux-libre Live ISO (\l)
+\s-\r \m.
+Default logins "root" and "libre" have no password.
+To begin installation, login as root
diff --git a/parabola-archiso-TEST/root-image/etc/motd b/parabola-archiso-TEST/root-image/etc/motd
new file mode 100644
index 0000000..af615af
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/motd
@@ -0,0 +1,12 @@
+**************************************************************
+* To begin installation, run /libre/setup *
+* You can find documentation at *
+* /usr/share/aif/docs/official_installation_guide_en *
+* *
+* i18n: Use the 'km' utility to change your keyboard layout *
+* and console font. *
+* *
+* If you encounter issues and want to report them or *
+* seek help, run /libre/report-issues *
+* *
+**************************************************************
diff --git a/parabola-archiso-TEST/root-image/etc/pam.d/su b/parabola-archiso-TEST/root-image/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth sufficient pam_rootok.so
+auth sufficient pam_wheel.so trust use_uid
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
diff --git a/parabola-archiso-TEST/root-image/etc/rc.conf b/parabola-archiso-TEST/root-image/etc/rc.conf
new file mode 100644
index 0000000..750f47f
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/rc.conf
@@ -0,0 +1,33 @@
+#
+# /etc/rc.conf - Main Configuration for Parabola GNU/Linux-Libre
+
+. /etc/archiso/functions
+
+LOCALE_DEFAULT="en_US.UTF-8"
+DAEMON_LOCALE_DEFAULT="no"
+CLOCK_DEFAULT="UTC"
+TIMEZONE_DEFAULT="Canada/Pacific"
+KEYMAP_DEFAULT="us"
+CONSOLEFONT_DEFAULT=
+CONSOLEMAP_DEFAULT=
+USECOLOR_DEFAULT="yes"
+
+LOCALE="$(kernel_cmdline locale ${LOCALE_DEFAULT})"
+DAEMON_LOCALE="$(kernel_cmdline daemon_locale ${DAEMON_LOCALE_DEFAULT})"
+HARDWARECLOCK="$(kernel_cmdline clock ${CLOCK_DEFAULT})"
+TIMEZONE="$(kernel_cmdline timezone ${TIMEZONE_DEFAULT})"
+KEYMAP="$(kernel_cmdline keymap ${KEYMAP_DEFAULT})"
+CONSOLEFONT="$(kernel_cmdline consolefont ${CONSOLEFONT_DEFAULT})"
+CONSOLEMAP="$(kernel_cmdline consolemap ${CONSOLEMAP_DEFAULT})"
+USECOLOR="$(kernel_cmdline usecolor ${USECOLOR_DEFAULT})"
+
+MODULES=()
+
+UDEV_TIMEOUT=30
+USEDMRAID="no"
+USEBTRFS="no"
+USELVM="no"
+
+HOSTNAME="libreiso"
+
+DAEMONS=(hwclock metalog)
diff --git a/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/automated_script b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/automated_script
new file mode 100644
index 0000000..b89ad9e
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/automated_script
@@ -0,0 +1,23 @@
+automated_script ()
+{
+ script="$(kernel_cmdline script)"
+ if [[ -n "${script}" ]]; then
+ stat_busy "Configuring $script"
+ if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then
+ wget "${script}" -q -O /tmp/startup_script >/dev/null
+ rt=$?
+ else
+ cp "${script}" /tmp/startup_script
+ rt=$?
+ fi
+ if [ ${rt} -eq 0 ]; then
+ chmod +x /tmp/startup_script
+ echo -e '\nif [ $(tty) = "/dev/tty1" ]; then\n /tmp/startup_script\nfi\n' >> /root/.bash_profile
+ stat_done
+ else
+ stat_fail
+ fi
+ fi
+}
+
+add_hook multi_end automated_script
diff --git a/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/prepare_locale_gen b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/prepare_locale_gen
new file mode 100644
index 0000000..47ed79d
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/prepare_locale_gen
@@ -0,0 +1,11 @@
+prepare_locale_gen ()
+{
+ if [[ ${LOCALE} != "en_US.UTF-8" ]]; then
+ stat_busy "Generating locales..."
+ sed -i "s/#\(${LOCALE/[@.]*}\)/\1/" /etc/locale.gen
+ /usr/sbin/locale-gen > /dev/null
+ stat_done
+ fi
+}
+
+add_hook sysinit_postmount prepare_locale_gen
diff --git a/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console
new file mode 100644
index 0000000..7badfe3
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console
@@ -0,0 +1,25 @@
+# If an alternate console was specified on the kernel command line,
+# start agetty on it too.
+setup_special_console()
+{
+ local cmdline_console
+ if cmdline_console=$(kernel_cmdline console); then
+ stat_busy "Starting agetty on console: ${cmdline_console}"
+ local port options baud rts
+ port=${cmdline_console%%,*}
+ options=${cmdline_console#${port}}
+ options=${options#,}
+ baud=${options%%[neo]*}
+ [[ ${options} == *r ]] && rts="-h"
+ if ! grep -q "^${port}" /etc/securetty; then
+ echo ${port} >> /etc/securetty
+ fi
+ if ! grep -q "^z0:" /etc/inittab; then
+ echo "z0:2345:respawn:/sbin/agetty -8 -s ${rts} ${baud:-9600} ${port} linux" >> /etc/inittab
+ fi
+ /sbin/telinit q
+ stat_done
+ fi
+}
+
+add_hook sysinit_end setup_special_console
diff --git a/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/symlink_used_block_devices b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/symlink_used_block_devices
new file mode 100644
index 0000000..f6b6062
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/symlink_used_block_devices
@@ -0,0 +1,7 @@
+symlink_used_block_devices()
+{
+ mkdir /run/aif
+ ln -s /run/archiso/used_block_devices /run/aif/ignore_block_devices
+}
+
+add_hook multi_end symlink_used_block_devices
diff --git a/parabola-archiso-TEST/root-image/etc/sudoers.d/g_wheel b/parabola-archiso-TEST/root-image/etc/sudoers.d/g_wheel
new file mode 100644
index 0000000..8c45359
--- /dev/null
+++ b/parabola-archiso-TEST/root-image/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL