Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
3c0f5d01
Commit
3c0f5d01
authored
Mar 05, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: use SYSROOT env var instead of hardcoded /mnt
parent
fd9c9852
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
setup-disk.in
setup-disk.in
+9
-6
No files found.
setup-disk.in
View file @
3c0f5d01
...
...
@@ -8,6 +8,9 @@ ROOTFS=${ROOTFS:-ext4}
BOOTFS
=
${
BOOTFS
:-
ext4
}
VARFS
=
${
VARFS
:-
ext4
}
# default location for mounted root
SYSROOT
=
${
SYSROOT
:-
/mnt
}
in_list
()
{
local
i
=
"
$1
"
shift
...
...
@@ -669,16 +672,16 @@ data_only_disk_install() {
setup_root
()
{
local
root_dev
=
"
$1
"
boot_dev
=
"
$2
"
mkfs.
$ROOTFS
-q
"
$root_dev
"
mkdir
-p
/mnt
mount
-t
$ROOTFS
$root_dev
/mnt
||
return
1
mkdir
-p
"
$SYSROOT
"
mount
-t
$ROOTFS
$root_dev
"
$SYSROOT
"
||
return
1
if
[
-n
"
$boot_dev
"
]
;
then
mkdir
-p
/mnt
/boot
mount
-t
$BOOTFS
$boot_dev
/mnt
/boot
||
return
1
mkdir
-p
"
$SYSROOT
"
/boot
mount
-t
$BOOTFS
$boot_dev
"
$SYSROOT
"
/boot
||
return
1
fi
setup_mdadm_conf
install_mounted_root
/mnt
||
return
1
unmount_partitions
/mnt
install_mounted_root
"
$SYSROOT
"
||
return
1
unmount_partitions
"
$SYSROOT
"
swapoff
-a
echo
""
...
...
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