usrmove: install missing binaries and "set -x" only for rd.debug
parent
4cbc0c79ac
commit
6334ffdbb0
|
@ -3,5 +3,9 @@
|
||||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||||
|
|
||||||
if getargbool 0 rd.usrmove; then
|
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
|
fi
|
||||||
|
|
|
@ -13,6 +13,7 @@ depends() {
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
dracut_install bash
|
dracut_install bash
|
||||||
|
dracut_install find ldconfig mv rm cp ln
|
||||||
inst_hook pre-pivot 99 "$moddir/do-usrmove.sh"
|
inst_hook pre-pivot 99 "$moddir/do-usrmove.sh"
|
||||||
inst "$moddir/usrmove-convert.sh" /usr/bin/usrmove-convert
|
inst "$moddir/usrmove-convert.sh" /usr/bin/usrmove-convert
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
ROOT="$1"
|
ROOT="$1"
|
||||||
|
|
||||||
if [[ ! -d "$ROOT" ]]; then
|
if [[ ! -d "$ROOT" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue