usrmove: install missing binaries and "set -x" only for rd.debug

master
Harald Hoyer 2012-01-26 13:55:50 +01:00
parent 4cbc0c79ac
commit 6334ffdbb0
3 changed files with 6 additions and 3 deletions

View File

@ -3,5 +3,9 @@
# ex: ts=8 sw=4 sts=4 et filetype=sh

if getargbool 0 rd.usrmove; then
usrmove-convert "$NEWROOT" 2>&1 | vinfo
if getargbool 0 rd.debug; then
bash -x usrmove-convert "$NEWROOT" 2>&1 | vinfo
else
usrmove-convert "$NEWROOT" 2>&1 | vinfo
fi
fi

View File

@ -13,6 +13,7 @@ depends() {

install() {
dracut_install bash
dracut_install find ldconfig mv rm cp ln
inst_hook pre-pivot 99 "$moddir/do-usrmove.sh"
inst "$moddir/usrmove-convert.sh" /usr/bin/usrmove-convert
}

View File

@ -2,8 +2,6 @@
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

set -x

ROOT="$1"

if [[ ! -d "$ROOT" ]]; then