Commits

stacklet committed 7bb3b7c

Name the initrd file 'initrd.gz'; add modules to /etc/mkinitrd.conf

Comments (0)

Files changed (2)

specs/distro/slackware/14/slackware.boot.xml

 <?xml version="1.0"?>
 <stk:spec xmlns:stk="http://stacklet.com/specfile/v1"
           xmlns:xi="http://www.w3.org/2001/XInclude">
-  <imports>stacklet.task.image.core stacklet.task.distro.slack stacklet.task.distro.slack13</imports>
+  <imports>stacklet.task.image.core stacklet.task.distro.slack stacklet.task.distro.slack14</imports>
   <xi:include href="slackware.boot.properties.xml"/>
   <stk:properties>
     <name>properties.xml</name>
       </add>
     </stk:package>
     <stk:command>
-      cd /boot; mkinitrd -m virtio_blk:virtio_pci -k `ls /lib/modules/` -o initrd  -f ext4 -r /dev/sda1
+      cd /boot; mkinitrd -m virtio_blk:virtio_pci -k `ls /lib/modules/` -o initrd.gz  -f ext4 -r /dev/sda1
+    </stk:command>
+    <stk:command>
+      echo 'MODULE_LIST="ext3:ext4:virtio:virtio_blk:virtio_pci"' > /etc/mkinitrd.conf
     </stk:command>
     <stk:kernel>
       <name>vmlinuz-*</name>

specs/distro/slackware/14/slackware.xenboot.xml

 <?xml version="1.0"?>
 <stk:spec xmlns:stk="http://stacklet.com/specfile/v1"
           xmlns:xi="http://www.w3.org/2001/XInclude">
-  <imports>stacklet.task.image.core stacklet.task.distro.slack stacklet.task.distro.slack13</imports>
+  <imports>stacklet.task.image.core stacklet.task.distro.slack stacklet.task.distro.slack14</imports>
   <xi:include href="slackware.xenboot.properties.xml"/>
   <stk:properties>
     <name>xenboot.properties.xml</name>
       installpkg /root/_image.kernel_
     </stk:command>
     <stk:command>
-      cd /boot; mkinitrd -m ext3:ext4 -k `ls /lib/modules/` -f ext4 -r /dev/xvda -o initrd
+      cd /boot; mkinitrd -m ext3:ext4 -k `ls /lib/modules/` -f ext4 -r /dev/xvda -o initrd.gz
     </stk:command>
     <stk:kernel>
       <name>vmlinuz-*</name>