Search Linux Wireless

Let Ubuntu Installing your initrd by default when compiling a kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Upon a 'make install' on a kernel source directory I think
distributions should automagically build your initrd for you. I use
Ubuntu mainly on x86 and for those boxen I installed debianutils,
which provides /sbin/installkernel. This is the path and filename to
the "distribution" script which the kernel Makefiles will run when you
type try to build the install target.

Fedora for example builds your all this shiny stuff for you too. I've
modified Debian's installkernel script to do this for Ubuntu. It'd be
nice to see Ubuntu ship with this script and with the below patch
applied. Mind you, Debian ships this script in debianutils. I haven't
run debian in a while so not sure if debian uses the same format as
you do for their initrd. If so then this can go upstream.

Just a small itch I had to scratch as I just apt-get dist-upgraded and
Ubuntu replaced my installkernel with the new one and it wasn't there.

--- /sbin/installkernel.old	2008-10-04 12:45:40.000000000 -0700
+++ /sbin/installkernel	2008-10-04 12:45:46.000000000 -0700
@@ -66,6 +66,9 @@
   updatever config "$config"
 fi

+mkinitramfs -o $dir/initrd.img-$ver $ver
+update-grub
+
 ## This is very far from existing practice in modern Debian installations
 ########################################################################
 # if [ "$(basename $img)" = "vmlinux" ] && [ "$(id -u)" = "0" ] ; then #
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux