Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
David Philipe Gil
package-helpers
Commits
b69c7dc6
Commit
b69c7dc6
authored
7 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
ubiquity: enabled encryption by default, disabled grub password hack
parent
6686d58d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helpers/DATA/ubiquity/encrypt_by_default.patch
+12
-0
12 additions, 0 deletions
helpers/DATA/ubiquity/encrypt_by_default.patch
helpers/make-ubiquity
+4
-18
4 additions, 18 deletions
helpers/make-ubiquity
with
16 additions
and
18 deletions
helpers/DATA/ubiquity/encrypt_by_default.patch
0 → 100644
+
12
−
0
View file @
b69c7dc6
diff -ru source.bak/ubiquity/plugins/ubi-partman.py source/ubiquity/plugins/ubi-partman.py
--- source.bak/ubiquity/plugins/ubi-partman.py 2017-06-18 00:20:17.662208590 -0400
+++ source/ubiquity/plugins/ubi-partman.py 2017-06-18 15:35:21.718202038 -0400
@@ -658,6 +658,8 @@
opt_desc.show()
opt_widget.set_label(options[option].title)
opt_desc.set_markup(fmt % options[option].desc)
+ if name = "use_crypto":
+ opt_widget.set_active(True)
if not ticked and opt_widget.get_sensitive():
opt_widget.set_active(True)
ticked = True
This diff is collapsed.
Click to expand it.
helpers/make-ubiquity
+
4
−
18
View file @
b69c7dc6
#!/bin/sh
#
# Copyright (C) 2011-201
6
Ruben Rodriguez <ruben@trisquel.info>
# Copyright (C) 2011-201
7
Ruben Rodriguez <ruben@trisquel.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -17,10 +17,12 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION
=
3
VERSION
=
4
.
./config
patch
-p1
<
$DATA
/encrypt_by_default.patch
cp
$DATA
/trisquel_installed.png pixmaps
rm
pixmaps/ubuntu_installed.png
replace ubuntu_installed trisquel_installed
.
...
...
@@ -220,22 +222,6 @@ then
chown root:admin /target/etc/italc/keys/private/*/key
fi
cat << EOF > /target/etc/grub.d/01_PASSWORD
#! /bin/sh -e
# As a security measure Trisquel sets a password for GRUB during install.
# It prevents unauthorized users from gaining root through the boot manager.
# You can still edit GRUB entries by entering "grub" as user and the password
# set below in this file. This file should only be readable by root.
#
# To disable the password, Comment or remove this file and run this command:
# sudo update-grub2
echo set superusers=grub
echo password grub
\$
(bash -c 'echo
\$
RANDOM')
EOF
chmod 700 /target/etc/grub.d/01_PASSWORD
# Hacks for accessibility
if pgrep orca > /dev/null
then
...
...
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