Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Z
zz9000-linux
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
Amiga
zz9000-linux
Commits
af033bfa
Commit
af033bfa
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
add script to make rootfs
parent
5de1b507
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mkuserland.sh
+37
-0
37 additions, 0 deletions
mkuserland.sh
with
37 additions
and
0 deletions
mkuserland.sh
0 → 100755
+
37
−
0
View file @
af033bfa
#!/bin/bash
set
-e
mmdebstrap
--architectures
=
armhf
--components
=
main
--variant
=
"minbase"
sid rootfs http://ftp.de.debian.org/debian
sudo chroot
rootfs /bin/bash
<<
EOF
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
export LC_ALL=C
export LANGUAGE=C
export LANG=C
echo "root:root" | chpasswd
passwd -d root # remove root password
# mount /proc if it doesn't exist
if [[ ! -e /proc/version ]]; then
mount -t proc none /proc
fi
ln --force --symbolic /usr/share/zoneinfo/Europe/Berlin /etc/localtime
echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections
echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | debconf-set-selections
dpkg --configure -a
apt update
apt install -y apt apt-utils gnupg ca-certificates
# FIXME: where does exim4 come from??
apt install -y cpio bsdmainutils init-system-helpers procps gpgv debian-archive-keyring readline-common cron netbase iproute2 ifupdown isc-dhcp-client iptables iputils-ping locales less net-tools curl wget nano vim coreutils parted file git sudo console-setup console-data unicode-data kbd systemd libpam-systemd systemd-sysv bash-completion ncurses-term usbutils fbset netcat-traditional nfacct traceroute htop ncdu ntpdate ntp screen telnet dosfstools e2fsprogs dialog i2c-tools xserver-xorg-video-fbdev xserver-xorg-input-libinput xserver-xorg-input-evdev
# disable built-in sleep targets
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
EOF
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