Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Boxiang Sun
lx2160a_build
Commits
14c0a5fc
Commit
14c0a5fc
authored
Dec 21, 2022
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runme: allow debian version choice
parent
ec5d3494
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
runme.sh
runme.sh
+12
-2
No files found.
runme.sh
View file @
14c0a5fc
...
...
@@ -20,11 +20,15 @@ BUILDROOT_VERSION=2020.02.1
:
${
SHALLOW
:
=false
}
:
${
SECURE
:
=false
}
:
${
ATF_DEBUG
:
=false
}
# Distribution for rootfs
# - ubuntu
# - debian
:
${
DISTRO
:
=ubuntu
}
# Ubuntu Version
# - focal (20.04)
# - jammy (22.04)
:
${
UBUNTU_VERSION
:
=focal
}
:
${
DEBIAN_VERSION
:
=bullseye
}
:
${
BR2_PRIMARY_SITE
:
=
}
# custom buildroot mirror
if
[
"x
$SHALLOW
"
==
"xtrue"
]
;
then
...
...
@@ -329,6 +333,12 @@ EOF
fi
if
[[
!
-f
$ROOTDIR
/build/debian-bullseye.ext4
]]
&&
[
"x
$DISTRO
"
==
"xdebian"
]
;
then
if
[[
$DEBIAN_VERSION
==
bullseye
]]
;
then
:
else
echo
"Error: Unsupported Debian Version
\"\$
{DEBIAN_VERSION}
\"
! To proceed please add support to runme.sh."
exit
1
fi
cd
$ROOTDIR
/build
mkdir
-p
debian
cd
debian
...
...
@@ -368,8 +378,8 @@ case "\$1" in
mkdir -p /mnt/var/cache/apt
mount -t tmpfs tmpfs /mnt/var/lib/apt/
mount -t tmpfs tmpfs /mnt/var/cache/apt/
debootstrap --no-check-certificate --verbose --arch arm64 --cache-dir=/tmp/cache --include=fdisk,e2fsprogs,isc-dhcp-client,ntpdate,sudo
bullseye
/mnt
#debootstrap --no-check-certificate --verbose --arch arm64 --cache-dir=/tmp/cache --include=locales,less,wget,procps,openssh-server,ifupdown,net-tools,isc-dhcp-client,ntpdate,lm-sensors,i2c-tools,psmisc,sudo,htop,iproute2,iputils-ping,kmod,network-manager,iptables,rng-tools,apt-utils
bullseye
/mnt
debootstrap --no-check-certificate --verbose --arch arm64 --cache-dir=/tmp/cache --include=fdisk,e2fsprogs,isc-dhcp-client,ntpdate,sudo
"
${
DEBIAN_VERSION
}
"
/mnt
#debootstrap --no-check-certificate --verbose --arch arm64 --cache-dir=/tmp/cache --include=locales,less,wget,procps,openssh-server,ifupdown,net-tools,isc-dhcp-client,ntpdate,lm-sensors,i2c-tools,psmisc,sudo,htop,iproute2,iputils-ping,kmod,network-manager,iptables,rng-tools,apt-utils
"
${
DEBIAN_VERSION
}
"
/mnt
cat /proc/net/pnp > /mnt/etc/resolv.conf
echo "localhost" > /mnt/etc/hostname
echo "127.0.0.1 localhost" > /mnt/etc/hosts
...
...
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