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(){
|
||||
local ptype=$1
|
||||
case "$ptype" in
|
||||
"data")
|
||||
"regular")
|
||||
return 0
|
||||
;;
|
||||
"overlay")
|
||||
|
|
@ -275,6 +275,7 @@ execute(){
|
|||
datapart=$createdPartition
|
||||
|
||||
printf "Mounting new partition to /data. "
|
||||
mkdir -p /data
|
||||
mount $datapart /data
|
||||
printf "Done.\n\n"
|
||||
|
||||
|
|
@ -283,7 +284,7 @@ execute(){
|
|||
|
||||
case "$ptype" in
|
||||
"overlay")
|
||||
|
||||
|
||||
mkdir -p /data/.work
|
||||
printf "Creating overlay folder in /data. "
|
||||
mkdir -p /data/overlay
|
||||
|
|
@ -294,6 +295,9 @@ execute(){
|
|||
printf "Done.\n\n"
|
||||
|
||||
touch /etc/nmhw-auto-part/overlay
|
||||
;;
|
||||
"regular")
|
||||
|
||||
;;
|
||||
*)
|
||||
echo "$ptype is not an option."
|
||||
|
|
|
|||
Loading…
Reference in New Issue