carbon-config

config submodule of carbon-core-system
git clone https://ccx.te2000.cz/git/carbon-config
Log | Files | Refs

commit 4a18283705a164594813f8c4cfc383fa9489e05e
parent 2e8d92782400e8ea6c70fea9774c2ac4925b392d
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Mon, 18 Jul 2022 19:49:37 +0200

Basic system configuration in files to symlink.

Diffstat:
Mpostinstall | 3+++
Astatic/etc/hostname | 1+
Astatic/etc/mkinitfs/mkinitfs.conf | 1+
Astatic/etc/profile.d/slashcommand.sh | 8++++++++
4 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/postinstall b/postinstall @@ -38,6 +38,9 @@ postinstall() { local diff_ret cd $ALL_DIR || exit $? ensure_symlink /command current/command || return $? + ensure_symlink /etc/hostname ../current/conf/static/etc/hostname || return $? + ensure_symlink /etc/profile.d/slashcommand.sh ../../current/conf/static/etc/profile.d/slashcommand.sh || return $? + ensure_symlink /etc/mkinitfs/mkinitfs.conf ../../current/conf/static/etc/mkinitfs/mkinitfs.conf || return $? if [[ -d /run/s6-rc/ ]]; then diff -Ru $preinstall_current/s6-rc-source ./s6-rc-source; diff_ret=$? diff --git a/static/etc/hostname b/static/etc/hostname @@ -0,0 +1 @@ +alpine_3_16 diff --git a/static/etc/mkinitfs/mkinitfs.conf b/static/etc/mkinitfs/mkinitfs.conf @@ -0,0 +1 @@ +features="ata base ext4 keymap kms mmc nvme raid scsi virtio xfs lvm" diff --git a/static/etc/profile.d/slashcommand.sh b/static/etc/profile.d/slashcommand.sh @@ -0,0 +1,8 @@ +# prepend /command to $PATH if not already present +case ":$PATH:" in + *:"/command":*) + ;; + *) + PATH="/command${PATH:+:$PATH}" + ;; +esac