Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
T
tails
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
N9iu7pk
tails
Commits
b0c0a7ee
Commit
b0c0a7ee
authored
7 years ago
by
N9iu7pk
Browse files
Options
Downloads
Patches
Plain Diff
live-build extensions for armhf and arm64
parent
c91439cd
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
auto/config
+43
-1
43 additions, 1 deletion
auto/config
config/amnesia
+24
-0
24 additions, 0 deletions
config/amnesia
with
67 additions
and
1 deletion
auto/config
+
43
−
1
View file @
b0c0a7ee
...
...
@@ -29,6 +29,11 @@ if grep -qs -E '^Pin:\s+release\s+.*o=Debian Backports' \
exit
1
fi
###if [ $(dpkg --print-architecture) != amd64 ] ; then
### echo "Only amd64 build systems are supported"
### exit 1
###fi
# init variables
RUN_LB_CONFIG
=
"lb config noauto"
...
...
@@ -53,12 +58,41 @@ perl -pi \
config/chroot_sources/
*
.chroot
\
||
exit
1
# Workaround: Missing dynamic architecture detection; Was hard coded ...
if
[
-z
"
${
LB_ARCHITECTURE
}
"
]
;
then
LB_ARCHITECTURE
=
"
${
AMNESIA_CROSS_ARCHITECTURE
}
"
fi
if
[
"
${
LB_ARCHITECTURE
}
"
=
amd64
]
;
then
LB_LINUX_FLAVOURS
=
"amd64-unsigned"
fi
if
[
-z
"
${
LB_BINARY_IMAGES
}
"
]
;
then
LB_BINARY_IMAGES
=
iso
fi
# Woraround: Possible pitfalls in debian's live-builder due to missing dir/files
mkdir
-p
-m
777
chroot
/etc
mkdir
-p
-m
777
chroot
/sbin
if
[
-f
chroot
/sbin/start-stop-daemon
]
;
then
cat
>
chroot
/sbin/start-stop-daemon
<<
EOF
#! /bin/sh
exit 0
EOF
fi
mkdir
-p
-m
777
chroot
/usr/sbin
mkdir
-p
-m
777
chroot
/bin
if
[
!
-f
chroot
/bin/hostname
]
;
then
echo
"null"
>
chroot
/bin/hostname
fi
mkdir
-p
-m
777
chroot
/etc/apt/sources.list.d
# set Amnesia's general options
$RUN_LB_CONFIG
\
--verbose
\
--apt-recommends
false
\
--architecture
${
LB_ARCHITECTURE
}
\
--backports
false
\
--binary-images
iso
\
--binary-images
${
LB_BINARY_IMAGES
}
\
--binary-indices
false
\
--checksums
none
\
--bootappend-live
"
${
AMNESIA_APPEND
}
"
\
...
...
@@ -69,6 +103,7 @@ $RUN_LB_CONFIG \
--iso-application
=
"The Amnesic Incognito Live System"
\
--iso-publisher
=
"https://tails.boum.org/"
\
--iso-volume
=
"TAILS
${
AMNESIA_FULL_VERSION
}
"
\
--linux-flavours
${
LB_LINUX_FLAVOURS
}
\
--memtest
none
\
--mirror-binary
"
$DEBIAN_MIRROR
"
\
--mirror-bootstrap
"
$DEBIAN_MIRROR
"
\
...
...
@@ -145,6 +180,13 @@ install -m 0755 \
# aufs4-standalone
rm
-rf
config/chroot_local-includes/usr/src/aufs4-standalone
cp
-a
submodules/aufs4-standalone config/chroot_local-includes/usr/src/
# gnome-shell-extension-florence-indicator
rm
-rf
\
config/chroot_local-includes/usr/share/gnome-shell/extensions/florenceIndicator@UshakovVasilii_Github.yahoo.com
if
[
-e
"submodules/gnome-shell-extension-florence-indicator/florenceIndicator@UshakovVasilii_Github.yahoo.com"
]
;
then
cp
-a
submodules/gnome-shell-extension-florence-indicator/florenceIndicator@UshakovVasilii_Github.yahoo.com/
\
config/chroot_local-includes/usr/share/gnome-shell/extensions/
fi
# custom debootstrap script, setting some APT magic to log downloads:
patch
\
...
...
This diff is collapsed.
Click to expand it.
config/amnesia
+
24
−
0
View file @
b0c0a7ee
...
...
@@ -46,3 +46,27 @@ AMNESIA_FULL_VERSION="${AMNESIA_VERSION} - ${AMNESIA_TODAY}"
AMNESIA_DEV_FULLNAME
=
'Tails developers'
AMNESIA_DEV_EMAIL
=
"tails@boum.org"
AMNESIA_DEV_KEYID
=
"A490 D0F4 D311 A415 3E2B B7CA DBB8 02B2 58AC D84F"
if
[
-x
/usr/bin/dpkg
]
then
AMNESIA_HOST_ARCHITECTURE
=
"
$(
dpkg
--print-architecture
)
"
else
AMNESIA_HOST_ARCHITECTURE
=
"
$(
uname
-m
)
"
if
[
"
${
AMNESIA_HOST_ARCHITECTURE
:0:5
}
"
==
"armv7"
]
;
then
AMNESIA_HOST_ARCHITECTURE
=
"armhf"
elif
[
"
${
AMNESIA_HOST_ARCHITECTURE
:0:5
}
"
==
"armv8"
]
;
then
AMNESIA_HOST_ARCHITECTURE
=
"arm64"
fi
fi
case
"
${
AMNESIA_HOST_ARCHITECTURE
}
"
in
amd64|i386|x86_64
)
AMNESIA_CROSS_ARCHITECTURE
=
"amd64 i386"
;;
powerpc|ppc64
)
AMNESIA_CROSS_ARCHITECTURE
=
"powerpc ppc64"
;;
*
)
AMNESIA_CROSS_ARCHITECTURE
=
"
${
AMNESIA_HOST_ARCHITECTURE
}
"
;;
esac
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