Thursday, March 24, 2016

What is `hooker script` actually in `scripts/init-top/all_generic_ide`?

Leave a Comment

I'm studying init in Ubuntu's ramdisk. In scripts/init-bottom/udev I saw this code snippets:

PREREQ="" prereqs() {     echo "$PREREQ" } case $1 in # get pre-requisites prereqs)     prereqs     exit 0     ;; esac 

It appears almost every scripts in scripts/** scripts(like scripts/init-top/all_generic_ide,scripts/local-bottom/ntfs_3g,scripts/local-premount/fixrtc,etc). Although they may have some subtle differences, but most of them are just have same snippets on the top of body code.

I read the wiki from Ubuntu: initramfs-tools

I totally have no idea what its purpose. I think I can realize its flow but just can't figure out what it gonna do?

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment