Skip to content

u/superl2

In this archive from Jan 2018 to Nov 2024

12
posts
47
comments
5
media
510
score

Like many others, the Arch Wiki was what introduced me to Arch in the first place. I realised that almost every problem I had on Ubuntu was documented in the wiki, so why was I using Ubuntu?

138 points

And this is the most logical way it should go. OS and only OS should rely on OS libraries. Any job that runs on the server should depend on its own libraries - for stability OFC

I agree with this on servers, but on desktop I'd much rather have apps use the system libraries. Otherwise we'd get a situation like Windows where every app ships with 40mb of libraries that all use their own memory.

9 points

To answer your questions directly:

  1. The OS doesn't usually know where GRUB is installed. You choose where to install it with grub-install.
  2. Kernels are added through menu entries in configuration file(s). The Arch Wiki should explain this in greater detail.
  3. Yes. GRUB can boot a kernel from any partition with a supported filesystem.
1 points

You should keep the kernels on the root partitions, it's the easiest way to do this. That way, your distros shouldn't need to mount the ESP at all unless they're updating GRUB.

As for GRUB itself, you have two options:

  1. Install GRUB from a distro, keeping the configuration on a root partition
  2. Install a standalone build of GRUB, keeping the configuration on the ESP

Personally, I'd go with option 2. The Arch Wiki has a section about this on the GRUB page.

You can then generate the configuration file however you'd like - I suggest using grub-mkconfig with custom entries in Arch. You could create the custom menuentries by running grub-mkconfig in other distros and using the menu entry output.

1 points

Never mind - the wiki page recommends the command gcc -c -Q -march=native --help=target | grep march to find out which march to use.

This wasn't outputting any march for me when I first tried, but after a reboot, it outputted skylake.

I suspect this might have something to do with the package upgrades I installed before rebooting.

1 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.