Merge lp:~cr3/checkbox/preseed_environment_info into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1655
Proposed branch: lp:~cr3/checkbox/preseed_environment_info
Merge into: lp:checkbox
Diff against target: 133 lines (+72/-14)
4 files modified
data/whitelists/default.whitelist (+14/-14)
debian/changelog (+2/-0)
debian/checkbox.config (+9/-0)
debian/checkbox.templates (+47/-0)
To merge this branch: bzr merge lp:~cr3/checkbox/preseed_environment_info
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Needs Fixing
Brendan Donegan (community) Approve
Review via email: mp+123750@code.launchpad.net

Description of the change

The purpose of this branch is to support preseeding of the environment_info plugin to replace echo'ing into the checkbox.ini file.

To post a comment you must log in.
Revision history for this message
Marc Tardif (cr3) wrote :

Don't worry about the changes to the default whitelist, it's just practical to have the __info__ section near the top so that we can do something like this:

head -n 32 data/whitelists/default.whitelist

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Thanks for this, now we can use debconf to set these values in the preseeds

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

130 +Template: checkbox/plugins/environment_info/open_n_ssid
131 +Type: string
132 +_Description: Open N SSID:
133 + The PSK of the 802.11n router with open security.

I assume you meant to say:

"The SSID of the 802.11n router with open security."

I don't know what the first part of the patch is doing though, is it unrelated?

review: Needs Fixing
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Please jettison from trunk

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

My comment is no longer valid, it's been fixed in trunk with a separate MP

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/whitelists/default.whitelist'
2--- data/whitelists/default.whitelist 2012-08-31 16:50:00 +0000
3+++ data/whitelists/default.whitelist 2012-09-11 14:01:19 +0000
4@@ -16,6 +16,20 @@
5 touchpad_scroll
6 uname
7 usb
8+__info__
9+codecs_attachment
10+cpuinfo_attachment
11+dmesg_attachment
12+dmi_attachment
13+dmidecode_attachment
14+efi_attachment
15+lsmod_attachment
16+lspci_attachment
17+modprobe_attachment
18+modules_attachment
19+sysfs_attachment
20+sysctl_attachment
21+udev_attachment
22 __audio__
23 audio/alsa_record_playback_external
24 audio/alsa_record_playback_internal
25@@ -49,20 +63,6 @@
26 graphics/minimum_resolution
27 graphics/driver_version
28 graphics/VESA_drivers_not_in_use
29-__info__
30-codecs_attachment
31-cpuinfo_attachment
32-dmesg_attachment
33-dmi_attachment
34-dmidecode_attachment
35-efi_attachment
36-lsmod_attachment
37-lspci_attachment
38-modprobe_attachment
39-modules_attachment
40-sysfs_attachment
41-sysctl_attachment
42-udev_attachment
43 __input__
44 input/keyboard
45 input/mouse
46
47=== modified file 'debian/changelog'
48--- debian/changelog 2012-09-10 20:34:37 +0000
49+++ debian/changelog 2012-09-11 14:01:19 +0000
50@@ -44,6 +44,8 @@
51 * scripts/touchpad_scroll_resource: Added support for systems without
52 a touchpad (LP #1045066)
53 * patch/0.14.2: Fixed patch to rmtree instead of rmdir scripts directory.
54+ * debian/checkbox.templates, debian/checkbox.config: Added support to
55+ preseed properties in environment_info plugin.
56
57 [Sean Feole]
58 * [FEATURE] scripts/battery_test: measures battery capacity before and after
59
60=== modified file 'debian/checkbox.config'
61--- debian/checkbox.config 2012-07-12 19:05:30 +0000
62+++ debian/checkbox.config 2012-09-11 14:01:19 +0000
63@@ -10,6 +10,15 @@
64 db_input medium checkbox/plugins/launchpad_prompt/email || true
65 db_input medium checkbox/plugins/proxy_info/http_proxy || true
66 db_input medium checkbox/plugins/proxy_info/https_proxy || true
67+ db_input medium checkbox/plugins/environment_info/routers || true
68+ db_input medium checkbox/plugins/environment_info/router_ssid || true
69+ db_input medium checkbox/plugins/environment_info/router_psk || true
70+ db_input medium checkbox/plugins/environment_info/wpa_bg_ssid || true
71+ db_input medium checkbox/plugins/environment_info/wpa_bg_psk || true
72+ db_input medium checkbox/plugins/environment_info/wpa_n_ssid || true
73+ db_input medium checkbox/plugins/environment_info/wpa_n_psk || true
74+ db_input medium checkbox/plugins/environment_info/open_bg_ssid || true
75+ db_input medium checkbox/plugins/environment_info/open_n_ssid || true
76 db_go
77 ;;
78 *)
79
80=== modified file 'debian/checkbox.templates'
81--- debian/checkbox.templates 2012-07-12 19:05:30 +0000
82+++ debian/checkbox.templates 2012-09-11 14:01:19 +0000
83@@ -28,3 +28,50 @@
84 Type: string
85 _Description: HTTPS Proxy:
86 HTTPS proxy to use instead of the one specified in environment.
87+
88+Template: checkbox/plugins/environment_info/routers
89+Type: select
90+Choices: single, multiple
91+Default: single
92+_Description: Routers:
93+ Whether there is a single router or multiple routers.
94+
95+Template: checkbox/plugins/environment_info/router_ssid
96+Type: string
97+_Description: Router SSID:
98+ The SSID of the single wireless router.
99+
100+Template: checkbox/plugins/environment_info/router_psk
101+Type: string
102+_Description: Router PSK:
103+ The PSK of the single wireless router.
104+
105+Template: checkbox/plugins/environment_info/wpa_bg_ssid
106+Type: string
107+_Description: WPA BG SSID:
108+ The SSID of the 802.11b/g router with WPA security.
109+
110+Template: checkbox/plugins/environment_info/wpa_bg_psk
111+Type: string
112+_Description: WPA BG PSK:
113+ The PSK of the 802.11b/g router with WPA security.
114+
115+Template: checkbox/plugins/environment_info/wpa_n_ssid
116+Type: string
117+_Description: WPA N SSID:
118+ The SSID of the 802.11n router with WPA security.
119+
120+Template: checkbox/plugins/environment_info/wpa_n_psk
121+Type: string
122+_Description: WPA N PSK:
123+ The PSK of the 802.11n router with WPA security.
124+
125+Template: checkbox/plugins/environment_info/open_bg_ssid
126+Type: string
127+_Description: Open BG SSID:
128+ The SSID of the 802.11b/g router with open security.
129+
130+Template: checkbox/plugins/environment_info/open_n_ssid
131+Type: string
132+_Description: Open N SSID:
133+ The PSK of the 802.11n router with open security.

Subscribers

People subscribed via source and target branches