Kernel panic after running an install script

I was trying to install the required software to use my Estonian ID-card with manjaro with the assistance of a script that I got from this official Estonian government website. Everything seemed fine, the script ran till the end, but my card reader wouldn’t read anything, so I thought perhaps I would reboot, and then this happened:

I looked at the script, but my amateur self couldn’t determine what part of it screwed me up, and how to unscrew myself. Can anyone help me out? Being able to use the smart card stuff later would be a bonus, but at this stage I’m willing to give up signing official documents in order to have a working PC.

As far as I can see, there’s no target for the last cat part:

cat << EOF

NB! KASUTAJATEL TULEB ISE PAIGALDADA Web eID VEEBILEHITSEJATE LAIENDUSED!
-------------------------------------------------------------------------
Ametlik uudis Web eID kasutuselevõtu kohta alates 15.märtsist 2022:
https://www.ria.ee/et/uudised/id-tarkvara-varske-versioon-sai-uuendusliku-web-eid-liidese.html

Vajalik võib olla ka käsitsi laienduse lubamine veebilehitsejas!
https://www.id.ee/artikkel/veebibrauserite-seadistamine-id-kaardi-kasutamiseks/

Kindlasti tasub üle kontrollida Web eID laienduse lubamine
privaatses, tundmatus veebilehitseja režiimis.

Kui teenusepakkuja pole jõudnud Web eID'd kasutusele võtta, siis võib
vajalik olla chrome-token-signing paketi paigaldamine. Lisateavet leiab
käesoleva skripti kommentaaridest. Kui tekib konflikt, siis tasub alles jätta Web eID
ja vanema teenuse puhul näiteks Smart-ID või muud nutiseadme-põhist
lahendust kasutada kuniks teenusepakkuja ka Web eID peale ära on uuendanud.

CHROMIUMi Web eID laiendus
--------------------------
... ja sellepõhised veebilehitsejad (Google Chrome, Brave, jt)
https://chrome.google.com/webstore/detail/web-eid/ncibgoaomkmdpilpocfeponihegamlic

FIREFOXi Web eID laiendus
-------------------------
https://addons.mozilla.org/en-US/firefox/addon/web-eid-webextension/

Firefoxi turvamooduli lisamine käsitsi
--------------------------------------
Firefoxis võib olla vajalik lisada käsitsi turvamoodul,
kui seda mingil põhjusel ei ole tekkinud:
- about:preferences#privacy (sisestada aadressireale + vajutada Enter)
- Turvaseadmed -> Laadi
- Nimi: OpenSC smartcard
- asukoht: /usr/lib/onepin-opensc-pkcs11.so

Automaatne sertifikaadi valimine Firefoxis
------------------------------------------
- aadressireale kirjutada
about:config
...ja vajutada Enter ning olla nõus hoiatusega
- otsida üles parameeter:
security.default_personal_cert
- vaikimisi on seal väärtus:
Ask Every Time
- automaatse režiimi sisselülitamiseks kirjutada selle asemele:
Select Automatically
- salvestada muudatus - vajutada Enter või rea lõpus vastav nupp

Web eID lisateave ja laienduse testimine
----------------------------------------
https://web-eid.eu/

Seal võimalik testida nii isikutuvastust kui digiallkirjastamist.

EOF

Not sure if that could cause an issue or overwrite something it shouldn’t.

Maybe it just prints out the text to your console after the script completes.

Indeed, that’s all it does. Whatever causes the kernel panic must be something else. Possibly a hardware conflict when the card reader is connected, but without more information about the OP’s system, we’ll never know.

I tried it with both the card reader in and out, unplugged a bunch of peripherals before booting up, etc. Didn’t have an effect. The only notable thing is that instead of the main monitor, the screen would only display on the connected Cintiq. I’ll provide more info when I get to the machine again.

I’d try the most obvious stuff first: in chroot, reinstall all kernels you have. And if you only have one, try some other one.

Why does script need to run -Scc like 5 times though? :smiley:

Well, I looked up how to chroot, but I can’t even get into tty2 to type in the inxi command to provide more system info. Once that kernel panic screen comes up, no keyboard combination does anything.

How do I go about doing that? Do I need a live USB stick? Anyone got a good tutorial to link me to?

I’d like to note that when it comes to Linux, I am still a dumbuser.

Yes.

To automatically chroot from live iso, try:

manjaro-chroot -a

Well, when you looked up how to chroot
what did you find?

because:

to chroot, you have to boot from an USB - like when you first installed your system
… or, more generally, from another existing system, which has access to the one you want to …access/fix

and from there
chroot into the Manjaro system

What you say does not sound like you where doing that.
Or is there indeed a kernel panic when you boot the installation ISO from USB?

I love the belligerence, but this was the first google response to “chroot manjaro”

and it only passingly mentions a live system in the original post. I am sorry, I’ll try to be better with my reading comprehension. The tutorial doesn’t start with “First, make a live USB stick”, so I got confused and came back here.

Oh, you assume too much my friend.
If you read it as such, I can assure you that it was not meant this way.

Only to give you the hint that you likely needed. :wink:

Ok, once I get into the chroot with a live USB stick, how the hell do I proceed fixing the kernel? Is there an easy to follow guide somewhere, or do I need to provide more info once I get into chroot with inxi?

provide info on what kernels do you have installed first:
mhwd-kernel -li

I’ll do that. The afflicted system is some 20 miles away, so I’ll post the results again later.

mhwd
and
mhwd-kernel
are, I believe, the commands to do these tasks from the command line
once you are inside your Manjaro system - it will be command line only … in a terminal or a TTY …

Can’t point you to resources how to use those commands - but you’ll find that or someone else will be happy to guide you.

If you can get into the system via ssh (for example)
… if it is running, no kernel panic yet …
then you can do it this way - no chroot needed
just access to a TTY

Huh? Just reinstall kernels. Guide is in man pacman :stuck_out_tongue:

mhwd-kernel is the better tool to do that - for Manjaro
else you’d need to install the kernel, then update grub and perhaps another thing I forgot about … to achieve the same

Or that, sure. :slight_smile:

Nah, pacman has hooks for that - it updates grub and remakes initramfs images.
mhwd-kernel is just a simple bash script that calls pacman tbh. :smiley:

Thanks! I’ll post the results once I get to try it.

you just chroot using this command:
sudo manjaro-chroot -a
and thats it, you are chrooted…
but before that, do you have installed different kernels?

I think I do have, yeah. I’ll post them in a bit.