Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-system-image
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
reform-system-image
Commits
eeff0066
Commit
eeff0066
authored
4 years ago
by
Zoé Bőle
Browse files
Options
Downloads
Patches
Plain Diff
added bind mounts
parent
70ee87b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
RC1 of MNT Reform System Image and Rescue Image
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reform2-imx8mq/mkimage.sh
+2
-1
2 additions, 1 deletion
reform2-imx8mq/mkimage.sh
reform2-imx8mq/mkuserland.sh
+23
-2
23 additions, 2 deletions
reform2-imx8mq/mkuserland.sh
with
25 additions
and
3 deletions
reform2-imx8mq/mkimage.sh
+
2
−
1
View file @
eeff0066
...
...
@@ -3,7 +3,8 @@
set
-x
set
-e
sudo
apt
install
parted multistrap udisks2 gcc-aarch64-linux-gnu make device-tree-compiler qemu-user-static binfmt-support
# make sure build tools are installes
sudo
apt-get
-y
install
parted multistrap udisks2 gcc-aarch64-linux-gnu make device-tree-compiler qemu-user-static binfmt-support
# build the linux kernel
./mkkernel.sh
...
...
This diff is collapsed.
Click to expand it.
reform2-imx8mq/mkuserland.sh
+
23
−
2
View file @
eeff0066
...
...
@@ -5,6 +5,23 @@
ETC
=
./template-etc
SKEL
=
./template-skel
mbind
()
{
for
d
in
dev proc sys
do
mount /
$d
target-userland/
$d
-o
bind
||
echo
"Bind-mounting /
$d
failed"
done
}
munbind
()
{
for
d
in
dev proc sys
do
umount
-f
target-userland/
$d
||
echo
"Umounting
$d
failed"
done
}
# Make sure there are no bind-mounts before attempting to delete the target
munbind
rm
-rf
./target-userland
mkdir
./target-userland
...
...
@@ -62,8 +79,10 @@ cp $ETC/eth.network target-userland/etc/systemd/network/
mkdir
-p
target-userland/var/lib/alsa
cp
$ETC
/asound.state target-userland/var/lib/alsa/
mknod
target-userland/dev/random c 1 8
mknod
target-userland/dev/urandom c 1 9
mbind
#mknod target-userland/dev/random c 1 8
#mknod target-userland/dev/urandom c 1 9
chown
root:root
-R
target-userland/
*
chown
root:shadow target-userland/etc/shadow
...
...
@@ -90,3 +109,5 @@ EOF
mkdir
-p
target-userland/etc/pulseaudio
cp
$ETC
/daemon.conf target-userland/etc/pulse/
munbind
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