You are not logged in.
Greetings all,
I am in the process of migrating to Arch after several years on Gentoo/Funtoo.
I wish to incorporate fwsnort rules into my firewall. My problem is that this will require most of the netfilter modules to be manually loaded if using the standard Arch kernel.
I can think of a few ways to deal with this:
1. Simply list all modules in /etc/rc.conf
2. Create a script in /etc/rc.d and add it to the Daemons list in rc.conf.
3. Create udev rules and hope they do not cause conflicts later.
4. Use the arch build system to create a custom kernel with all modules built-in.
5. ???
My preference is to simply build a new kernel. However, I am unfamiliar with ABS and what issues it may create.
My primary concern is ease of maintenance over time.
I am curious to know how long time Arch users would handle this.
Last edited by medicineman (2012-07-23 22:08:47)
Offline
If you want to load modules the traditional way is to just list them in MODULES in rc.conf. Alternatively (and this is what I'm suggesting people to do now), add a file /etc/load-modules.d/netfiler.conf and in it list each module you need on its own line.
Offline
1 or 4.
Many people use custom kernels. Check the AUR, it may already have one configured for that (though if you're from gentoo you'd likely just roll your own).
Similarly, since you're from gentoo it makes sense that compiling would be your go-to option. At least try out option 1 first, its basically set-and-forget. Compiling your own kernel via abs would need you to maintain a changeset for kernel config at least (and remembering to re-compile on update) or compiling a separately-named kernel (the standard linux PKGBUILD allows you to do this quite easily). In either case, I don't think wanting a set of modules warrants that hassle (I do us custom kernels, but not just for having some modules).
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
@tomegun
Your idea of using a separate file is appealing. It would eliminate the clutter of having 50+ modules listed in rc.conf. It would also be much easer to read with only one module per line. However, I am concerned that this may be an atypical solution as I do not have an /etc/load-modules.d/ folder. What packages/daemons/etc are required to implement this?
@ngoonee
I am trying to stay away from AUR until I become more familiar with Arch. Also, as a long term solution to such a vital part of the system, I would prefer to pull from the most stable repository possible.
I have been using Gentoo since 2005. Configuring kernels is [almost] easy at this point. I am still a little confused about ABS, though. I have been reviewing the following wiki page: https://wiki.archlinux.org/index.php/Ke … ild_System.
If I rename the kernel in PKGBUILD, will the new PKGBUILD be overwritten with future updates? I assume the new PKGBUILD should be renamed as well, but it is not specifically mentioned in this wiki.
Offline
To be clear:
1) If adding all of the modules to rc.conf is the accepted "Arch Way", then this is probably what I will do.
2) I dislike option two. It is something I have had to do as a work around in the past under Gentoo. I removed the scripts as soon as possible.
3) I "really" do not like the idea of adding udev rules. I may be able to get it to work, but I doubt it would be easy/simple to maintain.
4) Compiling a custom kernel is not a problem unless the arch build system proves troublesome to maintain. I will need to try it, but as the title implies, I am most interested in the correct "Arch Way".
5) I assume "/etc/load-modules.d/" is part of systemd (based on a quick look at the systemd wiki article). I will investigate this further.
6) I wish to comply with Arch Linux standards. The replies thus far indicate adding all modules to rc.conf is the correct "Arch Way". I will wait for more responses before accepting this as true.
Thank you to all that reply. Changing distro's requires re-learning how to accomplish even the most simple of tasks. All input is appreciated.
Offline
I have been using Gentoo since 2005. Configuring kernels is [almost] easy at this point. I am still a little confused about ABS, though. I have been reviewing the following wiki page: https://wiki.archlinux.org/index.php/Ke … ild_System.
If I rename the kernel in PKGBUILD, will the new PKGBUILD be overwritten with future updates? I assume the new PKGBUILD should be renamed as well, but it is not specifically mentioned in this wiki.
PKGBUILDs are glorified bash scripts (well, not really, but its helpful to my understanding). When you rename the package (perhaps to linux-custom), that's the name its installed under, it does not replace the current linux package (which is something I think you should leave around just in case, in all circumstances).
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
At least try out option 1 first, its basically set-and-forget.
As a former long-time Gentoo user, that's the method I settled on. Compiling custom kernels is an interesting exercise in learning a bit more about how the system itself is structured, but it gets tiring after a while. The stock Arch kernels have always worked fine for me, and I haven't had any need for custom builds (yet).
I have been using Gentoo since 2005. Configuring kernels is [almost] easy at this point. I am still a little confused about ABS, though. I have been reviewing the following wiki page: https://wiki.archlinux.org/index.php/Ke … ild_System.
If I rename the kernel in PKGBUILD, will the new PKGBUILD be overwritten with future updates? I assume the new PKGBUILD should be renamed as well, but it is not specifically mentioned in this wiki.
Neither ABS nor the AUR are completely analogous to portage. There are some similarities, but on the whole, both ABS and the AUR are much simpler than portage. Generally speaking, you won't have much need to use ABS outside custom kernels or the likes--I can do everything I need to with the stock packages (not ABS) and the AUR with a few custom PKGBUILDs here and there. I used ABS for my custom Firefox package initially, but I found that there were some changes I couldn't understand from the PKGBUILDs directly without going through the Subversion log/diff for the official Firefox build. So, I follow that now to get a better idea of the changes being made, and I can usually infer quite a lot from that. (Be careful if you use Subversion, though, that you ONLY checkout EXACTLY the package that you need. The instructions tell you that, of course, but it's worth warning a second time.)
Typically, if you're building from ABS or basing a build off ABS, depending on your needs, you'll want to copy the PKGBUILD to a safe location (like ~/builds/abs/<pkgname>) if you're planning on making significant changes. Otherwise, there's probably little need to worry about whether or not it'll be overwritten, especially if you're only building the PKGBUILD to take into account CFLAGS or other environment changes. Since the only reason I ever use ABS is typically for the express purpose of customizing the PKGBUILD, this is what I do.
AFAIK, you probably don't want to rename the PKGBUILD to something else. There are some tools that expect the PKGBUILD to be named, well, PKGBUILD. chroot building comes to mine, for example. No need to unnecessarily overcomplicate matters and introduce bugs--either human error or otherwise.
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
6) I wish to comply with Arch Linux standards. The replies thus far indicate adding all modules to rc.conf is the correct "Arch Way". I will wait for more responses before accepting this as true.
A few weeks ago, the answer would have been: "The most Arch-like way would be to add all the modules to the MODULES array in the rc.conf." Today, as tomegun suggests, Arch seems to be in a flux, the standard (the way to do things we are being encouraged to have a look at by the developers) is becoming a different one, gradually, but hacking the rc.conf will be "supported forever" (or something like that).
Such changes happen once in a while. It was not too long ago, when blacklisting modules in the rc.conf worked, by simply writing !modulename. That was quite uncomfortable, even a shock for some, but it's now the most normal thing to edit another file.
Offline
Such changes happen once in a while. It was not too long ago, when blacklisting modules in the rc.conf worked, by simply writing !modulename. That was quite uncomfortable, even a shock for some, but it's now the most normal thing to edit another file.
Actually, the most 'normal' thing is not to have to blacklist modules at all
.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
This was issued yesterday: http://mailman.archlinux.org/pipermail/ … 23283.html
...
4) This is (apparently) the controversial one, and this one I do feel
strongly about: Embrace the systemd configuration files
(/etc/vconsole.conf, /etc/locale.conf, /etc/hostname and
/etc/modules-load.d/) fully and declare them to be the recommended
standard. This means removing KEYMAP, CONSOLEFONT, CONSOLEMAP, LOCALE
and HOSTNAME from the default rc.conf and recommending the alternative
format in rc.conf(5). We would of course still support the old
options.
I am using Arch since 2008 or so and I never subscribed to the Arch mailing list. Someone from the IRC channel posted the link when I asked why the new install method needs editing /etc/hostname when the rc.conf has a big-ass HOSTNAME in there. Basically, loading modules from rc.conf will continue to work, for a while... Someone will probably fork the initscripts, or everyone changes to systemd by then, since apparently "systemd is simply too superior in every way" (read the "Justification of (4)" part).
This is what rc.conf will look like. I don't know why it's even called the "Main Configuration for Arch Linux" anymore... ![]()
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
This is what rc.conf will look like. I don't know why it's even called the "Main Configuration for Arch Linux" anymore...
While I don't really mind, I'd like to hear the explaination on... oh, I'll search the mailing list.
Offline
I don't know why it's even called the "Main Configuration for Arch Linux" anymore...
Sources needed for that title ![]()
I think that same conversation also mentions that rc.conf is meant to be the 'main configuration for Arch Linux specific stuff'. If other distros are finally agreeing on where basic (and to be honest, trivial) settings should be, what's the problem?
Actually I do see the problem, that this thread has been dragged off topic. Please continue discussion on this topic in the appropriate thread (there are at least 2 of them currently active).
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Wow, seriously? Chopping it up into a million separate files is similar to what Ubuntu does, which is horrid. It's far simpler to edit a single file to configure your whole system. It's elegant and it works. Why would the Arch devs screw with something that works?
Offline
@tomegun
Your idea of using a separate file is appealing. It would eliminate the clutter of having 50+ modules listed in rc.conf. It would also be much easer to read with only one module per line. However, I am concerned that this may be an atypical solution as I do not have an /etc/load-modules.d/ folder. What packages/daemons/etc are required to implement this?
This is implemented by both initscripts and systemd (i.e. it should just work on any arch system). Check "man 5 module-load.d". You might have to create the folder yourself.
Offline
medicineman wrote:@tomegun
Your idea of using a separate file is appealing. It would eliminate the clutter of having 50+ modules listed in rc.conf. It would also be much easer to read with only one module per line. However, I am concerned that this may be an atypical solution as I do not have an /etc/load-modules.d/ folder. What packages/daemons/etc are required to implement this?This is implemented by both initscripts and systemd (i.e. it should just work on any arch system). Check "man 5 module-load.d". You might have to create the folder yourself.
I think the problem here was that you spelled it very strangely the first time (load-modules.d) and just now wrong again in a different way. Take it easy, we don't want you to spell your code like that ![]()
@medicineman: The proper name is "modules-load.d" and it should already exist in your /etc.
Last edited by ataraxia (2012-07-23 21:43:24)
Offline
This was issued yesterday: http://mailman.archlinux.org/pipermail/ … 23283.html
The justifications seem reasonable to me. A long term solution for linux distributions in general could only be a good thing, right?
I do not care if I have to edit one file or twenty. As long as the end result is something that is stable and easy to maintain, I am happy.
I will, however, wait for the flames to die down before implementing systemd.
For now, I will mark this topic as solved and continue using rc.conf.
Thanks to everyone for contributing.
Offline
I think the problem here was that you spelled it very strangely the first time (load-modules.d) and just now wrong again in a different way. Take it easy, we don't want you to spell your code like that
@medicineman: The proper name is "modules-load.d" and it should already exist in your /etc.
Oops. That explains the confusion :-) Sorry about that.
Offline