# Check init bootarg if && ; then echo "Target filesystem doesn't have ${init}." init= fi # Search for valid init if ; then for init in /sbin/init /etc/init /bin/init /bin/sh; do if ; then continue fi break done fi # No init on rootmount if ; then panic " ...
if ; then export resume=${RESUME} else export noresume fi && modprobe netconsole netconsole=${netconsole} maybe_break top # export BOOT variable value for compcache, # so we know if we run from casper export BOOT # Don't do log messages here to avoid confusing usplash run ...
# Parse command line options for x in $(cat /proc/cmdline); do case $x in init=*) init=${x#init=} ;; root=*) ROOT=${x#root=} case $ROOT in LABEL=*) ROOT="${ROOT#LABEL=}" # support / in LABEL= paths (escape to \x2f) case "${ROOT}" in * *) if ; then ...
在通过对fedora与ubuntu的对比之中,我发现/proc下的目录结构是不一样的。但是/sys下的目录结构却是一样的的。有些书中说,/sys的主要目录的就是将信息分类,便于用户可以方便的查找信息。我想这可能就是为什么/sys下的文件目录结构是一样的了。 下面继续研究下面的代码: # Note that this only becomes /dev on ...