linutil icon indicating copy to clipboard operation
linutil copied to clipboard

Arch server install fail laptop

Open Grimmrp2 opened this issue 2 years ago • 3 comments

After running arch server install via the stable branch of linutil it fails at the end on lenovo laptop. PXL_20240908_101303729

Can anyone advise me how to grab a better log for a diagnosis?

Thanks

Grimmrp2 avatar Sep 08 '24 10:09 Grimmrp2

Ran again got same errors and some more pictures PXL_20240908_152905103 PXL_20240908_152756262 PXL_20240908_152945420

Grimmrp2 avatar Sep 08 '24 15:09 Grimmrp2

From the portion of the script you provided, the issue seems to arise in the logo() function around line 122-135, where it attempts to print the logo using echo -ne. Here's what could be happening:

Potential Issues:

  1. echo -ne Formatting: The command echo -ne is used to print the string without adding a new line and enabling interpretation of backslash escapes (-e). However, if there is any issue with the interpretation or escaping of characters, this could result in the errors you're seeing (i.e., missing or unrecognized commands).

  2. Whitespace or Unexpected Characters: Sometimes, invisible or non-printable characters in the script (especially if copied from a different format) can cause errors when interpreted by the shell.

Fixing Issues in script

1. Fix echo -ne Formatting Issue

The echo -ne command might be misinterpreting the special characters in the ASCII art. Instead, use a heredoc to print the ASCII art. Here’s the corrected version of the logo function.

logo () {
  cat << "EOF"
-------------------------------------------------------------------------
 **logo goes here**
-------------------------------------------------------------------------
        Please select preset setup settings for your system
-------------------------------------------------------------------------
EOF
}

2. Verify the Script for Invisible Characters

cat -A your_script.sh

Here's output.txt for the server-setup script.

3. Just remove the logo part from the script.

fam007e avatar Sep 08 '24 19:09 fam007e

It's already fixed on the latest release.

/close

ghost avatar Sep 20 '24 08:09 ghost