Dachstein /proc/cmdline Fix
One of the warm-fuzzies you get from running a LEAF based firewall like Dachstein is that it’s not a full-blown Linux distribution. You start with just the stuff you need for a firewall, and add other things you want.
But… there can be gotchas. I bumped into the /proc/cmdline limit on kernel params recently, while adding some more LRP packages to my 1.0.2 Dachstein system. You can tell if you’ve got the problem by comparing the LRP= list in your syslinux.cfg file, and what you see when you type
cat /proc/cmdline
If it’s getting truncated, then you’ve got a problem. I fixed the problem by moving the LRP package list out of syslinux.cfg, and into a separate file. Look for the line in /linuxrc that says
ROOTMAP="`sed 's/.*LRP=/1/; s/ .*//1' /proc/cmdline`"
and change it to two lines like this:
pkglist=`cat /boot/etc/lrppkgs.cfg`
ROOTMAP=`echo $pkglist | sed ’s/ /,/g’`
then put your list of LRP packages in /boot/etc/lrppkgs.cfg in a simple list, one per line, no punctuation. Backup root.lrp and boot, and you should see all your packages loading.
1 Comment »
RSS feed for comments on this post.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Or, you just use the $MNT/lrpkg.cfg feature, as is documented in the README.txt file on the Dachstein CD. Leave it to me to go and write code to fix a problem that’s already been solved…
Comment by Jim Moy — 3/8/2002 @ 10:31 am