Mnemosyne is a abstract distribution originally designed for ROCKLinux, but currently only support the trunk of OpenSDE.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
411 B

  1. if [ "$SDECFG_TRG_MNEMOSYNE_BOOT" == initrd ]; then
  2. # let's fake a template *g*
  3. mktinitrd_faketemplate() {
  4. if [ ! -f $root$libdir/initrd-template.img ]; then
  5. rm -rf /tmp/initrd-template.img.$$
  6. mkdir -p /tmp/initrd-template.img.$$
  7. mkcramfs /tmp/initrd-template.img.$$ $root$libdir/initrd-template.img
  8. rm -rf /tmp/initrd-template.img.$$
  9. fi
  10. }
  11. hook_add postflist 5 'mktinitrd_faketemplate'
  12. fi