2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

mount_apex_loop() less useless debug messages

This commit is contained in:
Christopher Roy Bratusek 2020-08-15 19:55:00 +02:00
parent b7246faf9b
commit efed9da25a
4 changed files with 13 additions and 13 deletions

View File

@ -242,14 +242,14 @@ mount_apex_loop () {
apex_mount="${1}"
mkdir -p "${apex_mount}"
echo " *** mount_apex_loop [apex_mount]: ${apex_mount}"
while [ ${number} -lt 64 ]; do
loop=/dev/block/loop${number}
[ -e ${loop} ] || mknod ${loop} b 7 $((number * minorx))
echo " *** mount_apex_loop [loop] ${loop}"
echo " *** mount_apex_loop [apex_mount] ${apex_mount}"
if losetup "${loop}" /apex/apex_payload.img; then
if losetup "${loop}" /apex/apex_payload.img 2>/dev/null; then
echo " *** mount_apex_loop [loop]: ${loop}"
if mount -text4 -oro,noatime "${loop}" "${apex_mount}"; then
rm -f /apex/apex_payload.img
break

View File

@ -62,7 +62,7 @@ mount_apex_loop () {
loop=/dev/block/loop${number}
[ -e ${loop} ] || mknod ${loop} b 7 $((number * minorx))
if losetup "${loop}" /apex/apex_payload.img; then
if losetup "${loop}" /apex/apex_payload.img 2>/dev/null; then
echo " *** mount_apex_loop [loop]: ${loop}"
if mount -text4 -oro,noatime "${loop}" "${apex_mount}"; then
rm -f /apex/apex_payload.img

View File

@ -48,14 +48,14 @@ mount_apex_loop () {
apex_mount="${1}"
mkdir -p "${apex_mount}"
echo " *** mount_apex_loop [apex_mount]: ${apex_mount}"
while [ ${number} -lt 64 ]; do
loop=/dev/block/loop${number}
[ -e ${loop} ] || mknod ${loop} b 7 $((number * minorx))
echo " *** mount_apex_loop [loop] ${loop}"
echo " *** mount_apex_loop [apex_mount] ${apex_mount}"
if losetup "${loop}" /apex/apex_payload.img; then
if losetup "${loop}" /apex/apex_payload.img 2>/dev/null; then
echo " *** mount_apex_loop [loop]: ${loop}"
if mount -text4 -oro,noatime "${loop}" "${apex_mount}"; then
rm -f /apex/apex_payload.img
break

View File

@ -125,14 +125,14 @@ mount_apex_loop () {
apex_mount="${1}"
mkdir -p "${apex_mount}"
echo " *** mount_apex_loop [apex_mount]: ${apex_mount}"
while [ ${number} -lt 64 ]; do
loop=/dev/block/loop${number}
[ -e ${loop} ] || mknod ${loop} b 7 $((number * minorx))
echo " *** mount_apex_loop [loop] ${loop}"
echo " *** mount_apex_loop [apex_mount] ${apex_mount}"
if losetup "${loop}" /apex/apex_payload.img; then
if losetup "${loop}" /apex/apex_payload.img 2>/dev/null; then
echo " *** mount_apex_loop [loop]: ${loop}"
if mount -text4 -oro,noatime "${loop}" "${apex_mount}"; then
rm -f /apex/apex_payload.img
break