nmhw-auto-part: fixed regular functionality.
BugzID: 55005 Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
parent
84eb8da797
commit
be97c8d11d
|
|
@ -48,7 +48,7 @@ rootsize_ok(){
|
||||||
type_available(){
|
type_available(){
|
||||||
local ptype=$1
|
local ptype=$1
|
||||||
case "$ptype" in
|
case "$ptype" in
|
||||||
"data")
|
"regular")
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
"overlay")
|
"overlay")
|
||||||
|
|
@ -275,6 +275,7 @@ execute(){
|
||||||
datapart=$createdPartition
|
datapart=$createdPartition
|
||||||
|
|
||||||
printf "Mounting new partition to /data. "
|
printf "Mounting new partition to /data. "
|
||||||
|
mkdir -p /data
|
||||||
mount $datapart /data
|
mount $datapart /data
|
||||||
printf "Done.\n\n"
|
printf "Done.\n\n"
|
||||||
|
|
||||||
|
|
@ -294,6 +295,9 @@ execute(){
|
||||||
printf "Done.\n\n"
|
printf "Done.\n\n"
|
||||||
|
|
||||||
touch /etc/nmhw-auto-part/overlay
|
touch /etc/nmhw-auto-part/overlay
|
||||||
|
;;
|
||||||
|
"regular")
|
||||||
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$ptype is not an option."
|
echo "$ptype is not an option."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue