Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MNT Reform Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
MNT Reform Tools
Commits
3d96eb3c
Verified
Commit
3d96eb3c
authored
3 weeks ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
sbin/reform-setup-encrypted-nvme: fix manually passing path to /dev/nvme0n1
parent
c71cbcb1
No related branches found
No related tags found
No related merge requests found
Pipeline
#3505
passed
3 weeks ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/reform-setup-encrypted-nvme
+15
-14
15 additions, 14 deletions
sbin/reform-setup-encrypted-nvme
with
15 additions
and
14 deletions
sbin/reform-setup-encrypted-nvme
+
15
−
14
View file @
3d96eb3c
...
...
@@ -86,25 +86,26 @@ command -v "mkfs.ext4" >/dev/null 2>&1 || {
exit
1
}
# shellcheck source=/dev/null
if
[
-e
"./machines/
$(
cat
/proc/device-tree/model
)
.conf"
]
;
then
.
"./machines/
$(
cat
/proc/device-tree/model
)
.conf"
elif
[
-e
"/usr/share/reform-tools/machines/
$(
cat
/proc/device-tree/model
)
.conf"
]
;
then
.
"/usr/share/reform-tools/machines/
$(
cat
/proc/device-tree/model
)
.conf"
else
echo
"E: unable to find config for
$(
cat
/proc/device-tree/model
)
"
>
&2
exit
1
fi
if
[
-z
"
$DEVICE_PATH
"
]
;
then
# shellcheck source=/dev/null
if
[
-e
"./machines/
$(
cat
/proc/device-tree/model
)
.conf"
]
;
then
.
"./machines/
$(
cat
/proc/device-tree/model
)
.conf"
elif
[
-e
"/usr/share/reform-tools/machines/
$(
cat
/proc/device-tree/model
)
.conf"
]
;
then
.
"/usr/share/reform-tools/machines/
$(
cat
/proc/device-tree/model
)
.conf"
else
echo
"E: unable to find config for
$(
cat
/proc/device-tree/model
)
"
>
&2
exit
1
fi
DEVICE_PATH
=
"/dev/
$DEV_SSD
"
fi
if
[
-b
"
$DEVICE_PATH
"
]
;
then
if
[
"
$DEV_SSD
"
=
"sda"
]
;
the
n
HUMAN
=
"SATA SSD"
else
HUMAN
=
"
NVMe
SSD"
fi
case
$DEVICE_PATH
i
n
/dev/sda
*
)
HUMAN
=
"SATA SSD"
;;
/dev/nvme0n1
*
)
HUMAN
=
"NVMe SSD"
;;
*
)
HUMAN
=
"SSD"
;;
esac
echo
"This will ERASE ALL DATA from your
$HUMAN
."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment