parent
02d7fdcab4
commit
fa2e6ce7e3
1
HACKING
1
HACKING
|
@ -18,4 +18,3 @@ and set
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
* udev
|
* udev
|
||||||
* nash (for switchroot until we get in util-linux)
|
|
||||||
|
|
3
TODO
3
TODO
|
@ -4,9 +4,6 @@ are/should be marked with "FIXME" in the code
|
||||||
|
|
||||||
INITRAMFS TODO
|
INITRAMFS TODO
|
||||||
--------------
|
--------------
|
||||||
* We have a horribly ugly switchroot implementation whose only
|
|
||||||
good point is that it gets rid of our dependency on nash.
|
|
||||||
It needs to be replaced by something nicer.
|
|
||||||
* The hard-coded list of udev rules that we care about is kind of
|
* The hard-coded list of udev rules that we care about is kind of
|
||||||
lame. See about getting /lib/udev/initrules.d or similar for storing
|
lame. See about getting /lib/udev/initrules.d or similar for storing
|
||||||
the rules that we care about in the initramfs. These could be
|
the rules that we care about in the initramfs. These could be
|
||||||
|
|
7
dracut
7
dracut
|
@ -15,14 +15,17 @@ while (($# > 0)); do
|
||||||
-h|--help) echo "Usage: $0 [-f] <initramfs> <kernel-version>"
|
-h|--help) echo "Usage: $0 [-f] <initramfs> <kernel-version>"
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
-v|--verbose) set -x;;
|
-v|--verbose) set -x;;
|
||||||
|
-c|--conf) conffile="$2"
|
||||||
-l|--local) allowlocal="yes" ;;
|
-l|--local) allowlocal="yes" ;;
|
||||||
--allow-missing) : ;;
|
--allow-missing) : ;;
|
||||||
*) break ;;
|
*) break ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
conffile="/etc/dracut.conf"
|
[[ -f $conffile ]] || {
|
||||||
[[ $allowlocal && -f dracut.conf ]] && conffile="dracut.conf"
|
conffile="/etc/dracut.conf"
|
||||||
|
[[ $allowlocal && -f dracut.conf ]] && conffile="dracut.conf"
|
||||||
|
}
|
||||||
. "$conffile"
|
. "$conffile"
|
||||||
|
|
||||||
[[ $allowlocal && -f dracut-functions ]] && dsrc="." || dsrc=/usr/lib/dracut
|
[[ $allowlocal && -f dracut-functions ]] && dsrc="." || dsrc=/usr/lib/dracut
|
||||||
|
|
Loading…
Reference in New Issue