Skip to content

u/SigmaScape

In this archive from Apr 2019 to Sep 2023

2
posts
69
comments
1
media
311
score

This is something i had to do a couple times to fix some broken kernel updates.

Here is a simplified step by step guide.

1 - boot from live usb (and optionally load your keyboard layout)

2 - mount your partitions to mimic the target system

Example for me :

❯ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme1n1     259:0    0 465.8G  0 disk
└─nvme1n1p1 259:2    0 465.8G  0 part /
nvme0n1     259:1    0 931.5G  0 disk
├─nvme0n1p1 259:3    0  1000M  0 part /boot
├─nvme0n1p2 259:4    0    16M  0 part
├─nvme0n1p3 259:5    0   930G  0 part
└─nvme0n1p4 259:6    0   575M  0 part

i've got two drives, the top one is dedicated to my linux root but my boot partition stands on my other disk.

Thus i do the following:

mount /dev/nvme1n1p1 /mnt
mount /dev/nvmen0p1 /mnt/boot

3 - now i can chroot into my system: arch-chroot /mnt

4 - Modify your system to your liking

5 - Rebuild the initramfs using mkinitcpio.

-> from that point your initramfs has been tweaked and hopefully it's not broken anymore, time to test that out

6 - Reboot & Profit

1 points

Hence why i specified

and installing random stuff

because :

  • "not because the source is open doors it mean people will read it or check if its legit".
  • when packages come in different flavours like -git or -bin, people will often pick the path of least resistance and install the precompiled binary without checking hash and stuff.

Let's not pretend that anyone using Arch follows basic "sec hygiene". i wouldn't be surprised to find cryptominers and keyloggers in many AUR repos.

12 points

my issue is that they both happened at the same time. so far i had 0 output to the TTY and the shutdown would be instantenuous.

now i get both at the same time, that's why i'm assuming there is a link.

thx for the answer though ,i'm gonna take a look at the kernel loglevel and the dmesg -D.

edit : output of systemd-analyze, nothing too fancy

Startup finished in 8.002s (firmware) + 1.513s (loader) + 2.292s (kernel) + 8.262s (userspace) = 20.070s 
graphical.target reached after 8.262s in userspace
1 points

So it's been like for a couple days now, i'm suddenly getting logs displayed when rebooting/shutting down my pc and it's hanging for a good 30 secs.

I've been scouring forums and wikis but to no avails, if anyone knows how to get rid of this, that would be amazing.

Edits:

  • dmesg -D does not disable the messages printed on the TTY during the shutdown/reboot.
  • setting the kernel loglevel at boot to '0' doesn't change anything
0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.