Skip to content

Commit

Permalink
init hooks/bcache: added FIXME note
Browse files Browse the repository at this point in the history
  • Loading branch information
tokiclover committed Jan 22, 2015
1 parent e3c6601 commit eca396e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions hooks/bcache
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source $LIBDIR/functions || return
source $LIBDIR/helpers || return
[ -z "$bcache" ] && _getopt "bcache"

#
# FIXME: luks, lvm, raid support?
#
dobcache() {
echo $$ >/run/${0##*/}.pid
debug _modprobe bcache
Expand Down
6 changes: 4 additions & 2 deletions init
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ done
[ -n "$splash" ] && debug spld

# -*- Font and keymap -*-

if [ -n "$keymap" ]; then
arg "font" "$keymap" "2" ":" "-s"
kmap="${keymap%:*}"
Expand Down Expand Up @@ -312,14 +311,17 @@ fi
lvl 4u
echo >/proc/sys/kernel/hotplug
msg -i "Switching / ..."
#
# FIXME: is this necessary?
#
$SPLD && debug spld_stop

umount -l /dev/pts
for _dir in /run /sys /dev /proc; do
[ -f $LOGFILE ] || export LOGFILE=/$0.log
if [ "${SYSFS/${_dir#/}}" != "$SYSFS" ]; then
mkdir -p $NEWROOT$_dir
debug -d mount -M $_dir $NEWROOT$_dir
debug -d mount -o move $_dir $NEWROOT$_dir
else
debug -d umount -l $_dir
fi
Expand Down

0 comments on commit eca396e

Please sign in to comment.