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
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
2e3bdc6d
Commit
2e3bdc6d
authored
Aug 06, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: copy apk config to new root
parent
fbe26c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
setup-disk.in
setup-disk.in
+5
-2
No files found.
setup-disk.in
View file @
2e3bdc6d
...
...
@@ -42,8 +42,12 @@ install_mounted_root() {
echon
"Installing system on
$rootdev
: "
lbu package - |
tar
-C
"
$mnt
"
-zx
# apk reads config from target root so we need to copy the config
mkdir
-p
"
$mnt
"
/etc/apk/keys/
cp
/etc/apk/keys/
*
"
$mnt
"
/etc/apk/keys/
apk add
-q
--progress
--root
"
$mnt
"
$(
cat
"
$mnt
"
/var/lib/apk/world
)
\
linux-grsec acct mkinitfs
acct linux-grsec alpine-base
>
/dev/null
||
return
1
echo
""
# make things bootable
kernel
=
$(
ls
"
$mnt
"
/lib/modules
)
...
...
@@ -61,7 +65,6 @@ install_mounted_root() {
rootdisk
=
"
$rootdisk
/dev/
${
i
}
"
done
fi
chroot
"
$mnt
"
/sbin/mkinitfs
-F
"
$features
"
$kernel
# create an extlinux.conf
sed
'/append initrd/d'
/media/
*
/syslinux.cfg
>
"
$mnt
"
/boot/extlinux.conf
...
...
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