I'm looking forward how to write a dracut module named 98systemimager. Despite 
my googling, I was unable to find somting enought sofisticated that would help 
Right now, The following stuff is working: 

dracut --force \ 
    --install " $(FOUND_INITRD_BINARIES) " \ 
    --filesystems "ext2 ext3 ext4 xfs jfs hfs reiserfs nfs" \ 
    --include $ ( INITRD_BUILD_DIR ) / \ 
    --no-hostonly --no-hostonly-cmdline \ 
    --add network \ 
    --add syslog \ 
    --add debug \ 
    --omit usrmount \ 
    $(INITRD_DIR)/initrd.img $(KVER) 

What I want is: 

dracut --force --add systemimager $(INITRD_DIR)/initrd.img $(KVER) 

I've started writing module-init.sh with basic skeleton 
So in other works I'd like to create a dracut module that would do the 
following stuffs: 
    - Depends on network and syslog (already ok)
    - disable usrmount module: is it possible to do that? 
    - enable --filesystems "ext2 ext3 ext4 xfs jfs hfs reiserfs nfs" so kernel 
modules (if not in kernel) and fs utils (mount, ...) are automatically 
    - include a full subtree: should I use (cd $ ( INITRD_BUILD_DIR ); tar cpf 
-)|(cd $initrdtemp; tar xpf -) ? 
    - enable by default --no-hostonly --no-hostonly-cmdline so most drivers are 
put into the initramfs. 

Aside that, I'm trying to understand the differences between the dracut hooks 
and native .services files. Currently, I'm using my own .services files to 
start network. If I replace this file with a hook (starting dhclient), would it 
work on centos6 that lacks systemd? 

Thanks a lot for any tips, infos or docs that would help me fullfill this need. 

Best regards. 

   Olivier LAHAYE
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to