From 12b6a06de8b82881e6b5e9694a6cd7bec1b119ec Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 3 Apr 2019 17:05:19 +0200 Subject: [arch] Add basic install package --- arch/init/PKGBUILD | 24 ++++++++++++++++++++++++ arch/init/locale.conf | 1 + arch/init/locale.gen | 1 + arch/init/my-init.install | 9 +++++++++ arch/init/override.conf | 4 ++++ arch/init/sudoers | 5 +++++ arch/init/vconsole.conf | 1 + 7 files changed, 45 insertions(+) create mode 100644 arch/init/PKGBUILD create mode 100644 arch/init/locale.conf create mode 100644 arch/init/locale.gen create mode 100644 arch/init/my-init.install create mode 100644 arch/init/override.conf create mode 100644 arch/init/sudoers create mode 100644 arch/init/vconsole.conf (limited to 'arch/init') diff --git a/arch/init/PKGBUILD b/arch/init/PKGBUILD new file mode 100644 index 0000000..404589e --- /dev/null +++ b/arch/init/PKGBUILD @@ -0,0 +1,24 @@ +# makepkg -sf +# sudo pacman -Uv --overwrite ... + +pkgname=my-init +pkgver=0 +pkgrel=1 +arch=(any) + +source=('vconsole.conf' + 'sudoers' + 'locale.gen' + 'locale.conf' + 'override.conf') + +md5sums=(SKIP SKIP SKIP SKIP SKIP) +install=my-init.install + +package() { + install -Dm 0644 override.conf "$pkgdir/etc/systemd/system/getty@tty1.service.d/override.conf" + install -Dm 0644 vconsole.conf "$pkgdir/etc/vconsole.conf" + install -Dm 0644 locale.gen "$pkgdir/etc/locale.gen" + install -Dm 0644 locale.conf "$pkgdir/etc/locale.conf" + install -Dm 0440 sudoers "$pkgdir/etc/sudoers" +} diff --git a/arch/init/locale.conf b/arch/init/locale.conf new file mode 100644 index 0000000..01ec548 --- /dev/null +++ b/arch/init/locale.conf @@ -0,0 +1 @@ +LANG=en_US.UTF-8 diff --git a/arch/init/locale.gen b/arch/init/locale.gen new file mode 100644 index 0000000..a66d814 --- /dev/null +++ b/arch/init/locale.gen @@ -0,0 +1 @@ +en_US.UTF-8 UTF-8 diff --git a/arch/init/my-init.install b/arch/init/my-init.install new file mode 100644 index 0000000..d55096c --- /dev/null +++ b/arch/init/my-init.install @@ -0,0 +1,9 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + echo "Updating locale..." + locale-gen +} + diff --git a/arch/init/override.conf b/arch/init/override.conf new file mode 100644 index 0000000..b59974f --- /dev/null +++ b/arch/init/override.conf @@ -0,0 +1,4 @@ +[Service] +ExecStart= +ExecStart=-/usr/bin/agetty --autologin urbain --noclear %I $TERM +Type=simple diff --git a/arch/init/sudoers b/arch/init/sudoers new file mode 100644 index 0000000..eb3ac7e --- /dev/null +++ b/arch/init/sudoers @@ -0,0 +1,5 @@ +## User privilege specification +root ALL=(ALL) ALL + +## Uncomment to allow members of group wheel to execute any command +%wheel ALL=(ALL) ALL diff --git a/arch/init/vconsole.conf b/arch/init/vconsole.conf new file mode 100644 index 0000000..ca887ec --- /dev/null +++ b/arch/init/vconsole.conf @@ -0,0 +1 @@ +KEYMAP=dvorak-programmer -- cgit v1.2.3