This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
cmd:imgfetch [2016/02/17 11:06] robinsmidsrod Added info about mode parameter |
cmd:imgfetch [2016/02/17 11:26] mcb30 |
||
---|---|---|---|
Line 60: | Line 60: | ||
kernel /boot/vmlinuz-2.6.31 | kernel /boot/vmlinuz-2.6.31 | ||
initrd initrd.img | initrd initrd.img | ||
- | initrd /modules/2.6.31/e1000.ko /lib/modules/e1000.ko mode=644 | + | initrd /initscripts/deploy.sh /sbin/init mode=755 |
boot | boot | ||
- | then the file ''initrd.img'' will be treated as a normal initramfs filesystem image, and the file ''e1000.ko'' will appear as an extra file ''/lib/modules/e1000.ko'' within this filesystem. The optional ''mode'' parameter can be used to change the file mode from the default 644 to 755 (useful for binaries that need to be executed). | + | then the file ''initrd.img'' will be treated as a normal initramfs filesystem image, and the file ''deploy.sh'' will appear as an extra executable file ''/sbin/init'' within this filesystem. |
+ | |||
+ | The optional ''mode'' parameter can be used to change the file mode, which defaults to 644. This can be useful for binaries that need to be executed. | ||