Merge lp:~jibel/ubiquity/lp1765651_OEM_touch_gnome-initial-setup_flag into lp:ubiquity

Proposed by Jean-Baptiste Lallement
Status: Merged
Merged at revision: 6620
Proposed branch: lp:~jibel/ubiquity/lp1765651_OEM_touch_gnome-initial-setup_flag
Merge into: lp:ubiquity
Diff against target: 34 lines (+13/-0)
2 files modified
debian/changelog (+3/-0)
scripts/plugininstall.py (+10/-0)
To merge this branch: bzr merge lp:~jibel/ubiquity/lp1765651_OEM_touch_gnome-initial-setup_flag
Reviewer Review Type Date Requested Status
Ubuntu Installer Team Pending
Review via email: mp+343793@code.launchpad.net

Commit message

Do not start gnome-initial-setup for the OEM user (LP: #1765651)

Description of the change

touch /home/oem/.config/gnome-initial-setup-done to prevent gnome-initial-setup from starting in OEM preparation mode.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2018-04-23 08:19:23 +0000
3+++ debian/changelog 2018-04-23 09:19:19 +0000
4@@ -14,6 +14,9 @@
5 * Automatic update of included source packages: localechooser
6 2.71ubuntu2.
7
8+ [ Jean-Baptiste Lallement ]
9+ * Do not start gnome-initial-setup for the OEM user (LP: #1765651)
10+
11 -- Colin Watson <cjwatson@ubuntu.com> Sun, 22 Apr 2018 11:20:16 +0100
12
13 ubiquity (18.04.9) bionic; urgency=medium
14
15=== modified file 'scripts/plugininstall.py'
16--- scripts/plugininstall.py 2018-04-20 21:11:32 +0000
17+++ scripts/plugininstall.py 2018-04-23 09:19:19 +0000
18@@ -1225,6 +1225,16 @@
19 'metadata::trusted', 'true')
20 break
21
22+ # Disable gnome-initial-setup for the OEM user
23+ install_misc.chrex(
24+ self.target, 'install', '-d',
25+ '-o', 'oem', '-g', 'oem',
26+ '/home/oem/.config')
27+ install_misc.chrex(
28+ self.target,
29+ 'sudo', '-i', '-u', 'oem',
30+ 'touch', '/home/oem/.config/gnome-initial-setup-done')
31+
32 # Carry the locale setting over to the installed system.
33 # This mimics the behavior in 01oem-config-udeb.
34 di_locale = self.db.get('debian-installer/locale')

Subscribers

People subscribed via source and target branches

to status/vote changes: