Signed-off-by: kokkiemouse <kokkiemouse@gmail.com>
EOF
echo "${username} ALL=NOPASSWD: ALL" >> /etc/sudoers.d/fedoralive
echo "root ALL=NOPASSWD: ALL" >> /etc/sudoers.d/fedoralive
+echo "#!/usr/bin/env bash" > "/etc/profile.d/alias_systemctl_setup.sh"
+echo "alias reboot=\"sudo reboot\"" >> "/etc/profile.d/alias_systemctl_setup.sh"
+echo "alias shutdown=\"sudo shutdown\"" >> "/etc/profile.d/alias_systemctl_setup.sh"
+echo "alias poweroff=\"sudo poweroff\"" >> "/etc/profile.d/alias_systemctl_setup.sh"
+echo "alias halt=\"sudo halt\"" >> "/etc/profile.d/alias_systemctl_setup.sh"
+chmod +x "/etc/profile.d/alias_systemctl_setup.sh"
+
# Chnage sudoers permission
if [[ -n "${1}" ]]; then
channel_name="${1}"
-
+ if [[ "${channel_name}" = "umount" ]]; then
+ umount_chroot_airootfs
+ exit 0
+ fi
check_channel() {
local channel_list
local i
channel_list=()
-
+
for _channel in $(ls -l "${channels_dir}" | awk '$1 ~ /d/ {print $9 }'); do
if [[ -n $(ls "${channels_dir}/${_channel}") ]] && [[ ! "${_channel}" = "share" ]]; then
channel_list+=( "${_channel}" )