diff options
author | awy <awy@tutamail.com> | 2024-08-20 19:06:17 +0300 |
---|---|---|
committer | awy <awy@tutamail.com> | 2024-08-20 19:06:17 +0300 |
commit | 1ab16323eafe4b9a0697b92561ca5463fe8f5b3a (patch) | |
tree | bfb534637b203398cbaef761b5b5b95e1dc08f33 /post_chroot.sh | |
parent | 423cac079c9228fe0f9243b0bbd726066441b8aa (diff) |
dash as sh
Diffstat (limited to 'post_chroot.sh')
-rwxr-xr-x | post_chroot.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/post_chroot.sh b/post_chroot.sh index 005f114..7725289 100755 --- a/post_chroot.sh +++ b/post_chroot.sh @@ -79,4 +79,22 @@ if [ "$_kernelflag" -eq 1 ]; then grub-mkconfig -o /boot/grub/grub.cfg fi +# use dash as sh +pacman -Sy dash +ln -sfT dash /usr/bin/sh +mkdir -p /etc/pacman.d/hooks +cat <<EOL >> /etc/pacman.d/hooks/bash.hook +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = bash + +[Action] +Description = Re-pointing /bin/sh symlink to dash... +When = PostTransaction +Exec = /usr/bin/ln -sfT dash /usr/bin/sh +Depends = dash +EOL + rm /post_chroot.sh |