fixes
This commit is contained in:
parent
88162d22fe
commit
a4ed6cdbdb
3 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ mo() {
|
|||
mkdir {lower,upper,work,mount}
|
||||
if mount "${file}" "lower" ; then
|
||||
mount \
|
||||
-o lowerdir="lower",upperdir="upper",workdir="work"
|
||||
-o lowerdir="lower",upperdir="upper",workdir="work" \
|
||||
-t "overlay" \
|
||||
"overlay" "mount"
|
||||
fi
|
||||
|
@ -72,9 +72,9 @@ um() {
|
|||
ms() {
|
||||
local directory="${1}"
|
||||
local level="${2}"
|
||||
if [ "${directory}" ] ; then
|
||||
if [ -n "${directory}" ] ; then
|
||||
if mkdir "${directory}" ; then
|
||||
[ "${level}" ] || level="18"
|
||||
[ -n "${level}" ] || level="18"
|
||||
cp overlay/mount/{vmlinuz,initrd.img} "${directory}"
|
||||
mksquashfs \
|
||||
"overlay/mount" "${directory}/filesystem.squashfs" \
|
||||
|
|
|
@ -73,7 +73,7 @@ rescue_install() {
|
|||
rescue_upload() {
|
||||
local host="${1}"
|
||||
local hostname="${2}"
|
||||
if [ "${hostname}" ]; then
|
||||
if [ -n "${hostname}" ]; then
|
||||
local user="root"
|
||||
#
|
||||
local user_host="${user}@${host}"
|
||||
|
|
|
@ -13,7 +13,7 @@ read_passphrase() {
|
|||
read_secret() {
|
||||
local prompt="${1}"
|
||||
local secret
|
||||
printf "${prompt}" 1>&2
|
||||
printf "%s" "${prompt}" 1>&2
|
||||
read -r -s secret
|
||||
echo >&2
|
||||
echo "${secret}"
|
||||
|
|
Loading…
Reference in a new issue