Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
aTc
pyra-install
Commits
50185f9c
Commit
50185f9c
authored
Jun 21, 2019
by
aTc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lsblk didn't always work from init-hwtest, switched to raw blkid
parent
c4df75c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
pyra-install.sh
pyra-install.sh
+11
-6
No files found.
pyra-install.sh
View file @
50185f9c
...
...
@@ -31,8 +31,10 @@ lsblk $DISK
#if [[ $? != 0 ]] ; then echo Failed; exit 1; fi
echo
"Installing to
$DISK
, make sure all partitions are unmounted"
read
-p
"Are you sure you want to continue? <y/N> "
prompt
if
!
[[
$prompt
=
~
[
yY]
(
es
)
*
]]
;
then
echo
"Exiting.."
;
exit
1
;
fi
if
[[
"
$INITHWTEST
"
-ne
1
]]
;
then
read
-p
"Are you sure you want to continue? <y/N> "
prompt
if
!
[[
$prompt
=
~
[
yY]
(
es
)
*
]]
;
then
echo
"Exiting.."
;
exit
1
;
fi
fi
#exit 0
...
...
@@ -107,11 +109,14 @@ else
tar
--numeric-owner
-xzf
$IMAGE
-C
rootfs
fi
ROOTPARTUUID
=
$(
lsblk
-n
-o
PARTUUID
$PART
)
BOOTPARTUUID
=
$(
lsblk
-n
-o
PARTUUID
$BOOTPART
)
ROOTPARTUUID
=
$(
blkid
-p
$PART
-s
PART_ENTRY_UUID
-o
value
)
BOOTPARTUUID
=
$(
blkid
-p
$BOOTPART
-s
PART_ENTRY_UUID
-o
value
)
#ROOTPARTUUID=$(lsblk -n -o PARTUUID $PART)
#BOOTPARTUUID=$(lsblk -n -o PARTUUID $BOOTPART)
# fs uuid sometimes failed, use PARTUUID for everything
ROOTFSUUID
=
$(
lsblk
-n
-o
UUID
$PART
)
BOOTFSUUID
=
$(
lsblk
-n
-o
UUID
$BOOTPART
)
#
ROOTFSUUID=$(lsblk -n -o UUID $PART)
#
BOOTFSUUID=$(lsblk -n -o UUID $BOOTPART)
sed
-i
-e
's/linux \/boot/linux /g'
rootfs/boot/extlinux/linux.cfg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment