Skip to content

Commit

Permalink
FIX: ASTRALINUX SE install
Browse files Browse the repository at this point in the history
  • Loading branch information
alealexpro100 committed Jun 5, 2023
1 parent 4bcb322 commit 215a50c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/distr/astra/distr_options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ add_var "declare -ga" "debian_repos_order"
add_var "declare -gx" "debian_repos[main]" "deb $astra_mirror $version_astra main non-free contrib"
add_var "declare -gx" "debian_repos_order[0]" "main"

# TODO: fix installation (kernel panic because of no module `parsec` in initramfs)
if [[ $kernel == "1" ]]; then
read_param "" "$M_KERNEL_TYPE" "$([[ $(detect_vm) || "$kernel_type" == "virtual" ]] && echo 1 || echo 0)" kernel_type menu_var "$(gen_menu < <(echo -e "vanilla\nvirtual"))"
fi
Expand Down
11 changes: 10 additions & 1 deletion lib/distr/astra/rootfs_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ $networkmanager != "1" ]]; then
fi

if [[ $kernel == "1" ]]; then
echo "Installing linux kernel and its additions..."
msg_print note "Installing linux kernel and its additions..."
case "$kernel_type" in
vanilla) to_install="$to_install linux-5.10-generic linux-headers-5.10-generic linux-firmware dkms";;
virtual) to_install="$to_install linux-5.10-generic";;
Expand Down Expand Up @@ -71,6 +71,15 @@ for service in $to_enable; do
systemctl enable "$service"
done

if [[ $kernel == "1" ]]; then
# Kernel is installed. Now we can check if it uses parsec module or not.
# If yes, we add directory to avoid init kill (boot fail).
if [[ -f /usr/share/initramfs-tools/modules.d/parsec ]]; then
msg_print note "Parsec module found. Creatins /parsecfs directory..."
mkdir -p /parsecfs
fi
fi

# It is required because of 'security'. It wil not work otherwise
msg_print note "Setting up admin user..."
groupadd -g 1001 astra-admin
Expand Down

0 comments on commit 215a50c

Please sign in to comment.