Merge lp:~ivoks/casper/casper-virtio into lp:casper
- casper-virtio
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~ivoks/casper/casper-virtio |
Merge into: | lp:casper |
Diff against target: |
4049 lines (+2343/-759) (has conflicts) 52 files modified
.bzr-builddeb/default.conf (+2/-0) bin/casper-a11y-enable (+668/-0) bin/casper-preseed (+13/-6) bin/casper-set-selections (+92/-0) bin/casper-snapshot (+1/-1) bin/casper-update-initramfs (+25/-0) casper-md5check/Makefile (+2/-1) casper-md5check/casper-md5check.c (+115/-97) conf.d/compcache (+1/-1) debian/casper.init (+17/-11) debian/casper.install (+3/-0) debian/casper.postinst (+10/-0) debian/changelog (+769/-1) debian/control (+6/-6) debian/copyright (+11/-1) debian/manpage/casper.7 (+12/-0) debian/source/format (+1/-0) hooks/casper (+5/-1) scripts/casper (+107/-26) scripts/casper-bottom/05mountpoints (+4/-0) scripts/casper-bottom/07remove_oem_config (+32/-0) scripts/casper-bottom/10adduser (+16/-26) scripts/casper-bottom/15autologin (+53/-9) scripts/casper-bottom/19keyboard (+39/-11) scripts/casper-bottom/22gnome_panel_data (+0/-6) scripts/casper-bottom/22screensaver (+1/-3) scripts/casper-bottom/22sslcert (+1/-0) scripts/casper-bottom/23networking (+20/-15) scripts/casper-bottom/24preseed (+40/-15) scripts/casper-bottom/25configure_init (+2/-2) scripts/casper-bottom/26disable_user_menu (+28/-0) scripts/casper-bottom/30accessibility (+31/-151) scripts/casper-bottom/31disable_update_notifier (+8/-0) scripts/casper-bottom/32disable_hibernation (+6/-10) scripts/casper-bottom/34disable_kde_services.OTHER (+36/-0) scripts/casper-bottom/37kubuntu_netbook_installer_link (+0/-28) scripts/casper-bottom/40install_driver_updates (+7/-1) scripts/casper-bottom/41apt_cdrom (+9/-1) scripts/casper-bottom/42disable_apparmor (+0/-26) scripts/casper-bottom/43disable_updateinitramfs (+2/-7) scripts/casper-bottom/44pk_allow_ubuntu (+2/-23) scripts/casper-bottom/45disable_guest_account (+0/-25) scripts/casper-bottom/47unr_ubiquity (+0/-39) scripts/casper-bottom/48enable_kubuntu_netbook (+0/-27) scripts/casper-bottom/48kubuntu_disable_restart_notifications (+5/-0) scripts/casper-bottom/49kubuntu_mobile_session (+5/-0) scripts/casper-functions (+15/-1) scripts/casper-helpers (+34/-10) scripts/casper-premount/10driver_updates (+1/-1) ubiquity-hooks/30accessibility (+75/-162) ubiquity-hooks/48enable_kubuntu_netbook (+0/-8) ubiquity-hooks/49kubuntu_gnome_icon_cache (+11/-0) Contents conflict in scripts/casper-bottom/34disable_kde_services |
To merge this branch: | bzr merge lp:~ivoks/casper/casper-virtio |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Core Development Team | Pending | ||
Review via email: mp+78378@code.launchpad.net |
This proposal has been superseded by a proposal from 2011-10-06.
Commit message
Description of the change
At the moment, casper doesn't work with live system located on virtio device. This simple change makes that possible.
Colin Watson (cjwatson) wrote : | # |
Ante Karamatić (ivoks) wrote : | # |
Ups. Sorry about that.
Unmerged revisions
- 961. By Ante Karamatić
-
* scripts/casper:
- enable use of virtio devices in is_nice_device() - 960. By Luke Yelavich
-
releasing version 1.284
- 959. By Luke Yelavich
-
Make sure profile settings are not set up twice
- 958. By Luke Yelavich
-
* Fix typo
* Write session data if a starttup script is created - 957. By Luke Yelavich
-
* ubiquity-
hooks/30accessi bility:
- Make sure that accessibility profile settings are properly applied at
install time, even if the user decided to try Ubuntu first, and then
run the install from the desktop
- Copy any existing orca configuration to the target system - 956. By Luke Yelavich
-
Reformat the changelog to be easier to comprehend
- 955. By Luke Yelavich
-
* Set correct permissions for the orca config directory once the config files
have been created
* Make sure the startup script checks take into account the ability to be run
from the initramfs - 954. By Luke Yelavich
-
* Make sure that accessibility profile settings are properly applied at
install time, even if the user decided to try Ubuntu first, and then
run the install from the desktop
* Add some other needed settings for various profiles for use in the login
manager - 953. By Luke Yelavich
-
* bin/casper-
a11y-enable: Set the session by calling AccountService via dbus
instead of using lightdm commands, as we cannot run lightdm-set-defaults
as a user
* Add some extra spaces to make sure the startup scripts used to set a11y
settings are syntactically correct - 952. By Martin Pitt
-
releasing version 1.283
Preview Diff
1 | === added directory '.bzr-builddeb' | |||
2 | === added file '.bzr-builddeb/default.conf' | |||
3 | --- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000 | |||
4 | +++ .bzr-builddeb/default.conf 2011-10-06 10:04:28 +0000 | |||
5 | @@ -0,0 +1,2 @@ | |||
6 | 1 | [BUILDDEB] | ||
7 | 2 | native = True | ||
8 | 0 | 3 | ||
9 | === added file 'bin/casper-a11y-enable' | |||
10 | --- bin/casper-a11y-enable 1970-01-01 00:00:00 +0000 | |||
11 | +++ bin/casper-a11y-enable 2011-10-06 10:04:28 +0000 | |||
12 | @@ -0,0 +1,668 @@ | |||
13 | 1 | #!/bin/sh | ||
14 | 2 | # | ||
15 | 3 | # casper-a11y-enable - Sets accessibility profile settings for the live session | ||
16 | 4 | # or installed system. | ||
17 | 5 | # | ||
18 | 6 | # This script is called by several other scripts, as well as ubiquity itself to | ||
19 | 7 | # set up accessibility profile settings for use in the live environment and on | ||
20 | 8 | # an installed system. | ||
21 | 9 | # | ||
22 | 10 | # Copyright (C) 2011, Canonical Ltd. | ||
23 | 11 | # | ||
24 | 12 | # Author: | ||
25 | 13 | # - Luke Yelavich <luke.yelavich@canonical.com> | ||
26 | 14 | # | ||
27 | 15 | # This script is free software; you can redistribute it and/or modify it under | ||
28 | 16 | # the terms of the GNU General Public License as published by the Free | ||
29 | 17 | # Software Foundation; either version 2 of the License, or at your option) | ||
30 | 18 | # any later version. | ||
31 | 19 | # | ||
32 | 20 | # This program is distributed in the hope that it will be useful, | ||
33 | 21 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
34 | 22 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
35 | 23 | # GNU General Public License for more details. | ||
36 | 24 | # | ||
37 | 25 | # You should have received a copy of the GNU General Public License along | ||
38 | 26 | # with this application; if not, write to the Free Software Foundation, Inc., 51 | ||
39 | 27 | # Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
40 | 28 | ################################################################################## | ||
41 | 29 | |||
42 | 30 | set -e | ||
43 | 31 | |||
44 | 32 | ### PROFILE SETTINGS METHODS BEGIN HERE ### | ||
45 | 33 | # The methods that are used to set profile data have been placed as close to the | ||
46 | 34 | # top of this file as possible, so they are easy to locate, and will hopefully | ||
47 | 35 | # save time when making smaller changes. | ||
48 | 36 | |||
49 | 37 | # Common settings for low vision profiles. Any change you make here will affect | ||
50 | 38 | # all low vision profiles, for both the user session and login manager. | ||
51 | 39 | set_common_lowvis() | ||
52 | 40 | { | ||
53 | 41 | gset set org.gnome.desktop.interface toolkit-accessibility true | ||
54 | 42 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
55 | 43 | gct -s -t bool /apps/gksu/disable-grab true | ||
56 | 44 | gset set org.gnome.yelp show-cursor true | ||
57 | 45 | add_sudoers_file | ||
58 | 46 | } | ||
59 | 47 | |||
60 | 48 | # Common settings for motor profiles. Any change you make here will affect | ||
61 | 49 | # all motor profiles, for both the user session and login manager. | ||
62 | 50 | set_common_motor() | ||
63 | 51 | { | ||
64 | 52 | gset set org.gnome.desktop.a11y.keyboard enable true | ||
65 | 53 | gct -s -t bool /apps/gksu/disable-grab true | ||
66 | 54 | gset set org.gnome.desktop.a11y.keyboard stickykeys-enable true | ||
67 | 55 | gset set org.gnome.desktop.a11y.keyboard stickykeys-two-key-off false | ||
68 | 56 | } | ||
69 | 57 | |||
70 | 58 | # Settings for the high-contrast profile. | ||
71 | 59 | set_high_contrast() | ||
72 | 60 | { | ||
73 | 61 | gset set org.gnome.desktop.interface icon-theme HighContrast | ||
74 | 62 | gset set org.gnome.desktop.interface monospace-font-name "monospace 18" | ||
75 | 63 | gset set org.gnome.desktop.interface font-name "sans 18" | ||
76 | 64 | gset set org.gnome.desktop.background picture-uri "" | ||
77 | 65 | gset set org.gnome.desktop.background picture-options none | ||
78 | 66 | gset set org.gnome.desktop.background primary-color \#666666 | ||
79 | 67 | gset set org.gnome.desktop.background secondary-color \#7F7F7F | ||
80 | 68 | gset set org.gnome.desktop.background color-shading-type solid | ||
81 | 69 | gset set org.gnome.desktop.interface cursor-size 48 | ||
82 | 70 | gset set org.gnome.desktop.interface cursor-theme whiteglass | ||
83 | 71 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/ | ||
84 | 72 | if [ -d $CHROOT_DIR/usr/share/xubuntu-default-settings/accessibility ]; then | ||
85 | 73 | cp -a $CHROOT_DIR/usr/share/xubuntu-default-settings/accessibility/* $CHROOT_DIR/etc/xdg/ | ||
86 | 74 | fi | ||
87 | 75 | } | ||
88 | 76 | |||
89 | 77 | set_magnifier() | ||
90 | 78 | { | ||
91 | 79 | # Ubuntu | ||
92 | 80 | gset set org.gnome.desktop.a11y.applications screen-magnifier-enabled true | ||
93 | 81 | set_orca_config magnifier | ||
94 | 82 | |||
95 | 83 | # Kubuntu | ||
96 | 84 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/,/usr/share/kubuntu-default-settings/kde-profile/moderate-visual-impairment/ | ||
97 | 85 | } | ||
98 | 86 | |||
99 | 87 | set_blindness() | ||
100 | 88 | { | ||
101 | 89 | gset set org.gnome.desktop.a11y.applications screen-reader-enabled true | ||
102 | 90 | gset set org.gnome.Empathy.conversation theme classic | ||
103 | 91 | set_orca_config speech | ||
104 | 92 | set_session ubuntu-2d | ||
105 | 93 | |||
106 | 94 | if [ -n "$SET_LOGIN" ]; then | ||
107 | 95 | gset_lightdm set org.gnome.desktop.interface toolkit-accessibility true | ||
108 | 96 | gset_lightdm set org.gnome.desktop.a11y.applications screen-reader-enabled true | ||
109 | 97 | fi | ||
110 | 98 | } | ||
111 | 99 | |||
112 | 100 | set_braille() | ||
113 | 101 | { | ||
114 | 102 | gset set org.gnome.desktop.a11y.applications screen-reader-enabled true | ||
115 | 103 | gset set org.gnome.Empathy.conversation theme classic | ||
116 | 104 | set_orca_config braille | ||
117 | 105 | set_session ubuntu-2d | ||
118 | 106 | |||
119 | 107 | if [ -n "$SET_LOGIN" ]; then | ||
120 | 108 | gset_lightdm set org.gnome.desktop.interface toolkit-accessibility true | ||
121 | 109 | gset_lightdm set org.gnome.desktop.a11y.applications screen-reader-enabled true | ||
122 | 110 | fi | ||
123 | 111 | } | ||
124 | 112 | |||
125 | 113 | set_keyboard_modifiers() | ||
126 | 114 | { | ||
127 | 115 | gset set org.gnome.desktop.a11y.keyboard mousekeys-enable true | ||
128 | 116 | gset set org.gnome.desktop.a11y.keyboard stickykeys-modifier-beep true | ||
129 | 117 | gset set org.gnome.settings-daemon.peripherals.keyboard repeat true | ||
130 | 118 | gset set org.gnome.settings-daemon.peripherals.keyboard delay 700 | ||
131 | 119 | gset set org.gnome.settings-daemon.peripherals.keyboard repeat-interval 10 | ||
132 | 120 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/ | ||
133 | 121 | if [ -e $CHROOT_DIR/etc/xdg/xfce4/mcs_settings/keyboard.xml ]; then | ||
134 | 122 | sed -i 's/0/1/' $CHROOT_DIR/etc/xdg/xfce4/mcs_settings/keyboard.xml | ||
135 | 123 | fi | ||
136 | 124 | } | ||
137 | 125 | |||
138 | 126 | set_onscreen_keyboard() | ||
139 | 127 | { | ||
140 | 128 | gset set org.gnome.desktop.interface toolkit-accessibility true | ||
141 | 129 | gset set org.gnome.desktop.a11y.keyboard stickykeys-modifier-beep false | ||
142 | 130 | gset set org.gnome.desktop.a11y.applications screen-keyboard-enabled true | ||
143 | 131 | |||
144 | 132 | if [ -n "$SET_LOGIN" ]; then | ||
145 | 133 | gset_lightdm set org.gnome.desktop.interface toolkit-accessibility true | ||
146 | 134 | gset_lightdm set org.gnome.desktop.a11y.applications screen-keyboard-enabled true | ||
147 | 135 | fi | ||
148 | 136 | |||
149 | 137 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/,/usr/share/kubuntu-default-settings/kde-profile/motor-difficulties-pointing-devices/ | ||
150 | 138 | if [ -e $CHROOT_DIR/etc/xdg/xfce4/mcs_settings/keyboard.xml ]; then | ||
151 | 139 | sed -i '/Sticky/ s/0/1/' $CHROOT_DIR/etc/xdg/xfce4/mcs_settings/keyboard.xml | ||
152 | 140 | fi | ||
153 | 141 | } | ||
154 | 142 | ### PROFILE SETTINGS METHODS END HERE ### | ||
155 | 143 | |||
156 | 144 | help() | ||
157 | 145 | { | ||
158 | 146 | cat <<EOF | ||
159 | 147 | Usage: $0 [-chroot=<root>] [-user=<username>] [-l|-login] | ||
160 | 148 | [-i|-initramfs] [-d|-debug] <profilename> | ||
161 | 149 | |||
162 | 150 | -h, -help Display this help. | ||
163 | 151 | -chroot=<root> Chroot into <root> to apply profile settings, requires a | ||
164 | 152 | username to be specified, see below. | ||
165 | 153 | -user=<username> The user where a profile is to be applied, requires the | ||
166 | 154 | script to be run as root. If no username is given, it | ||
167 | 155 | is assumed that you wish to apply profile settings for | ||
168 | 156 | the current user. | ||
169 | 157 | -l, -login Apply some of the selected profile settings to the | ||
170 | 158 | login manager. Currently this is hard-coded to lightdm. | ||
171 | 159 | This requires root privileges. | ||
172 | 160 | -i, -initramfs Indicate that the script is being called from the | ||
173 | 161 | initramfs. Allows the script to assume some values | ||
174 | 162 | that can not otherwise be easily determined in an | ||
175 | 163 | initramfs environment. Requires that a chroot dir and | ||
176 | 164 | user name are specified. See above. | ||
177 | 165 | -script Create a script to be run at system boot that will | ||
178 | 166 | apply all settings for the specified user and for | ||
179 | 167 | login. This script will then remove itself. This is | ||
180 | 168 | needed to work around gsettings not working in a chroot | ||
181 | 169 | environment with no dconf service running. | ||
182 | 170 | -d|-debug Enable debugging output. | ||
183 | 171 | <profilename> The name of the profile you wish to apply, see below. | ||
184 | 172 | |||
185 | 173 | The profiles currently available are as follows: | ||
186 | 174 | high-contrast For users with lesser visual impairments who only need a high | ||
187 | 175 | contrast theme, mouse cursor and icons. | ||
188 | 176 | magnifier For users with moderate visual impairments who require a screen | ||
189 | 177 | magnifier. | ||
190 | 178 | blindness Users who are partially or completely blind who require a screen | ||
191 | 179 | reader. | ||
192 | 180 | braille Users who are partially or completely blind who require a screen | ||
193 | 181 | reader and wish to use a Braille display. | ||
194 | 182 | keyboard-modifiers | ||
195 | 183 | Users who have minor motor impairments who require slight | ||
196 | 184 | changes to the way their keyboard behaves. | ||
197 | 185 | onscreen-keyboard | ||
198 | 186 | Users with motor impairments who require the use of an | ||
199 | 187 | on-screen keyboard. | ||
200 | 188 | EOF | ||
201 | 189 | } | ||
202 | 190 | |||
203 | 191 | gset() | ||
204 | 192 | { | ||
205 | 193 | if [ -n "$GLIBBIN_VERSION" ]; then | ||
206 | 194 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
207 | 195 | echo "gsettings " "$@" >> $CHROOT_DIR/usr/bin/a11y-profile-settings | ||
208 | 196 | else | ||
209 | 197 | $DO_CHROOT $DO_SUDO gsettings "$@" | ||
210 | 198 | fi | ||
211 | 199 | fi | ||
212 | 200 | } | ||
213 | 201 | |||
214 | 202 | gset_lightdm() | ||
215 | 203 | { | ||
216 | 204 | if [ -n "$GLIBBIN_VERSION" ]; then | ||
217 | 205 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
218 | 206 | echo "gsettings " "$@" >> $CHROOT_DIR/usr/bin/a11y-profile-settings-lightdm | ||
219 | 207 | else | ||
220 | 208 | $DO_CHROOT sudo -u lightdm gsettings "$@" | ||
221 | 209 | fi | ||
222 | 210 | fi | ||
223 | 211 | } | ||
224 | 212 | |||
225 | 213 | # Soon to be deprecated | ||
226 | 214 | gct() | ||
227 | 215 | { | ||
228 | 216 | if [ -n "$GCONF_VERSION" ]; then | ||
229 | 217 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
230 | 218 | echo "gconftool-2 " "$@" >> $CHROOT_DIR/usr/bin/a11y-profile-settings | ||
231 | 219 | else | ||
232 | 220 | $DO_CHROOT $DO_SUDO gconftool-2 "$@" | ||
233 | 221 | fi | ||
234 | 222 | fi | ||
235 | 223 | } | ||
236 | 224 | |||
237 | 225 | gct_lightdm() | ||
238 | 226 | { | ||
239 | 227 | if [ -n "$GCONF_VERSION" ]; then | ||
240 | 228 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
241 | 229 | echo "gconftool-2 " "$@" >> $CHROOT_DIR/usr/bin/a11y-profile-settings-lightdm | ||
242 | 230 | else | ||
243 | 231 | $DO_CHROOT sudo -u lightdm gconftool-2 "$@" | ||
244 | 232 | fi | ||
245 | 233 | fi | ||
246 | 234 | } | ||
247 | 235 | |||
248 | 236 | kderc_addtoprefixes() | ||
249 | 237 | { | ||
250 | 238 | if [ -e $CHROOT_DIR/etc/kde4rc ]; then | ||
251 | 239 | sed -i "s|\\(prefixes=/usr/share/kubuntu-default-settings/kde-profile/default/\\)|\\1,$1|" $CHROOT_DIR/etc/kde4rc | ||
252 | 240 | fi | ||
253 | 241 | } | ||
254 | 242 | |||
255 | 243 | add_sudoers_file() | ||
256 | 244 | { | ||
257 | 245 | if [ "$HOME" = "/root" ] || [ -n "$IN_INITRAMFS" ]; then | ||
258 | 246 | cat <<EOF > $CHROOT_DIR/etc/sudoers.d/a11y-sudo | ||
259 | 247 | # To allow accessibility in GTK to work with sudo. | ||
260 | 248 | Defaults env_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES" | ||
261 | 249 | EOF | ||
262 | 250 | chmod 0440 $CHROOT_DIR/etc/sudoers.d/a11y-sudo | ||
263 | 251 | else | ||
264 | 252 | echo "Warning: Could not create sudoers file due to no root privileges." | ||
265 | 253 | fi | ||
266 | 254 | } | ||
267 | 255 | |||
268 | 256 | # Unfortunately this bloats this script somewhat, but orca doesn't seem to want | ||
269 | 257 | # to deal with individual settings/a small config fragment. | ||
270 | 258 | # Arguments: $1 = speech/magnifier/braille (which | ||
271 | 259 | # accessibility feature to turn on) | ||
272 | 260 | set_orca_config() | ||
273 | 261 | { | ||
274 | 262 | # Yes, we could use $HOME, but enquiring about $HOME is not easy when | ||
275 | 263 | # Outside the target environment, particularly when running from the | ||
276 | 264 | # initramfs, and this script is not everything for everybody anyway. | ||
277 | 265 | if [ -n "$ORCA_VERSION" ] && ! [ -f "$CHROOT_DIR/home/$USER_NAME/.local/share/orca/user-settings.conf" ]; then | ||
278 | 266 | mkdir -p "$CHROOT_DIR/home/$USER_NAME/.local/share/orca" | ||
279 | 267 | |||
280 | 268 | cat <<EOF > "$CHROOT_DIR/home/$USER_NAME/.local/share/orca/user-settings.conf" | ||
281 | 269 | { | ||
282 | 270 | "pronunciations": {}, | ||
283 | 271 | "keybindings": {}, | ||
284 | 272 | "profiles": { | ||
285 | 273 | "default": { | ||
286 | 274 | "profile": [ | ||
287 | 275 | "Default", | ||
288 | 276 | "default" | ||
289 | 277 | ], | ||
290 | 278 | "pronunciations": {}, | ||
291 | 279 | "keybindings": {} | ||
292 | 280 | } | ||
293 | 281 | }, | ||
294 | 282 | "general": { | ||
295 | 283 | "speakCellHeaders": true, | ||
296 | 284 | "magEdgeMargin": 0, | ||
297 | 285 | "brailleContractionTable": "", | ||
298 | 286 | "magPointerFollowsFocus": false, | ||
299 | 287 | "magTextTrackingMode": 2, | ||
300 | 288 | "magZoomerBorderSize": 1, | ||
301 | 289 | "brailleAlignmentStyle": 0, | ||
302 | 290 | "enableEchoByWord": false, | ||
303 | 291 | "enableMagZoomerColorInversion": false, | ||
304 | 292 | "magCursorSize": 32, | ||
305 | 293 | "magSmoothingMode": 0, | ||
306 | 294 | "magZoomerLeft": 840, | ||
307 | 295 | "showMainWindow": true, | ||
308 | 296 | "sayAllStyle": 1, | ||
309 | 297 | "brailleSelectorIndicator": 192, | ||
310 | 298 | "presentDateFormat": "%x", | ||
311 | 299 | "magContrastLevel": 0, | ||
312 | 300 | "magMouseTrackingMode": 0, | ||
313 | 301 | "speakCellSpan": true, | ||
314 | 302 | "progressBarUpdateInterval": 10, | ||
315 | 303 | "speakCellCoordinates": true, | ||
316 | 304 | "enablePauseBreaks": true, | ||
317 | 305 | "brailleEOLIndicator": " $l", | ||
318 | 306 | "verbalizePunctuationStyle": 1, | ||
319 | 307 | "progressBarVerbosity": 1, | ||
320 | 308 | "enableSpeech": false, | ||
321 | 309 | "enableBraille": false, | ||
322 | 310 | "chatAnnounceBuddyTyping": false, | ||
323 | 311 | "speakMultiCaseStringsAsWords": false, | ||
324 | 312 | "enableBrailleGrouping": false, | ||
325 | 313 | "readTableCellRow": true, | ||
326 | 314 | "speechServerFactory": "speechdispatcherfactory", | ||
327 | 315 | "textAttributesBrailleIndicator": 0, | ||
328 | 316 | "enableMagCursorExplicitSize": false, | ||
329 | 317 | "messageVerbosityLevel": 1, | ||
330 | 318 | "enableMagLiveUpdating": true, | ||
331 | 319 | "enableSpeechIndentation": false, | ||
332 | 320 | "enableKeyEcho": true, | ||
333 | 321 | "magHideCursor": false, | ||
334 | 322 | "magZoomerBorderColor": "#000000", | ||
335 | 323 | "magPointerFollowsZoomer": true, | ||
336 | 324 | "mouseDwellDelay": 0, | ||
337 | 325 | "magBrightnessLevelRed": 0, | ||
338 | 326 | "enableMagnifier": false, | ||
339 | 327 | "magZoomFactor": 4.0, | ||
340 | 328 | "activeProfile": [ | ||
341 | 329 | "Default", | ||
342 | 330 | "default" | ||
343 | 331 | ], | ||
344 | 332 | "enableMagZoomerBorder": false, | ||
345 | 333 | "flashVerbosityLevel": 1, | ||
346 | 334 | "enableFlashMessages": true, | ||
347 | 335 | "speechServerInfo": null, | ||
348 | 336 | "presentToolTips": false, | ||
349 | 337 | "flashIsPersistent": false, | ||
350 | 338 | "skipBlankCells": false, | ||
351 | 339 | "firstStart": false, | ||
352 | 340 | "largeObjectTextLength": 75, | ||
353 | 341 | "enableEchoBySentence": false, | ||
354 | 342 | "magContrastLevelBlue": 0, | ||
355 | 343 | "magContrastLevelRed": 0, | ||
356 | 344 | "enableContractedBraille": false, | ||
357 | 345 | "orcaModifierKeys": [ | ||
358 | 346 | "Insert", | ||
359 | 347 | "KP_Insert" | ||
360 | 348 | ], | ||
361 | 349 | "enableMagCursor": true, | ||
362 | 350 | "speechRequiredStateString": "required", | ||
363 | 351 | "quitOrcaNoConfirmation": false, | ||
364 | 352 | "brailleRequiredStateString": "required", | ||
365 | 353 | "magCursorColor": "#000000", | ||
366 | 354 | "enablePositionSpeaking": false, | ||
367 | 355 | "magZoomerType": 0, | ||
368 | 356 | "onlySpeakDisplayedText": false, | ||
369 | 357 | "enableProgressBarUpdates": true, | ||
370 | 358 | "wrappedStructuralNavigation": true, | ||
371 | 359 | "chatRoomHistories": false, | ||
372 | 360 | "brailleVerbosityLevel": 1, | ||
373 | 361 | "enableFunctionKeys": true, | ||
374 | 362 | "enableModifierKeys": true, | ||
375 | 363 | "magCrossHairColor": "#000000", | ||
376 | 364 | "enableTutorialMessages": false, | ||
377 | 365 | "enableActionKeys": true, | ||
378 | 366 | "speakBlankLines": true, | ||
379 | 367 | "magColorFilteringMode": 0, | ||
380 | 368 | "magZoomerRight": 1680, | ||
381 | 369 | "keyboardLayout": 1, | ||
382 | 370 | "magTargetDisplay": "", | ||
383 | 371 | "disableBrailleEOL": false, | ||
384 | 372 | "magZoomerTop": 0, | ||
385 | 373 | "magSourceDisplay": "", | ||
386 | 374 | "enableDiacriticalKeys": false, | ||
387 | 375 | "enableMnemonicSpeaking": false, | ||
388 | 376 | "enabledBrailledTextAttributes": "size:; family-name:; weight:400; indent:0; underline:none; strikethrough:false; justification:left; style:normal; text-spelling:none;", | ||
389 | 377 | "speechVerbosityLevel": 1, | ||
390 | 378 | "enableMagCrossHair": true, | ||
391 | 379 | "enableBrailleMonitor": false, | ||
392 | 380 | "voices": { | ||
393 | 381 | "default": { | ||
394 | 382 | "established": false | ||
395 | 383 | }, | ||
396 | 384 | "uppercase": { | ||
397 | 385 | "average-pitch": 5.6 | ||
398 | 386 | }, | ||
399 | 387 | "system": { | ||
400 | 388 | "established": false | ||
401 | 389 | }, | ||
402 | 390 | "hyperlink": { | ||
403 | 391 | "established": false | ||
404 | 392 | } | ||
405 | 393 | }, | ||
406 | 394 | "magContrastLevelGreen": 0, | ||
407 | 395 | "brailleFlashTime": 5000, | ||
408 | 396 | "magCrossHairSize": 16, | ||
409 | 397 | "enableMouseReview": false, | ||
410 | 398 | "enableNavigationKeys": false, | ||
411 | 399 | "magBrightnessLevelGreen": 0, | ||
412 | 400 | "chatSpeakRoomName": false, | ||
413 | 401 | "startingProfile": [ | ||
414 | 402 | "Default", | ||
415 | 403 | "default" | ||
416 | 404 | ], | ||
417 | 405 | "enableLockingKeys": true, | ||
418 | 406 | "profile": [ | ||
419 | 407 | "Default", | ||
420 | 408 | "default" | ||
421 | 409 | ], | ||
422 | 410 | "brailleRolenameStyle": 1, | ||
423 | 411 | "brailleLinkIndicator": 192, | ||
424 | 412 | "enableEchoByCharacter": false, | ||
425 | 413 | "magBrightnessLevelBlue": 0, | ||
426 | 414 | "enableBrailleContext": true, | ||
427 | 415 | "magControlTrackingMode": 2, | ||
428 | 416 | "magZoomerBottom": 1050, | ||
429 | 417 | "enablePrintableKeys": true, | ||
430 | 418 | "enabledSpokenTextAttributes": "size:; family-name:; weight:400; indent:0; underline:none; strikethrough:false; justification:left; style:normal; paragraph-style:; text-spelling:none;", | ||
431 | 419 | "chatMessageVerbosity": 0, | ||
432 | 420 | "presentTimeFormat": "%X", | ||
433 | 421 | "magBrightnessLevel": 0, | ||
434 | 422 | "presentRequiredState": false, | ||
435 | 423 | "enableMagCrossHairClip": false | ||
436 | 424 | } | ||
437 | 425 | } | ||
438 | 426 | EOF | ||
439 | 427 | |||
440 | 428 | case "$1" in | ||
441 | 429 | magnifier) | ||
442 | 430 | sed -i -e 's/\"enableMagnifier\": false/\"enableMagnifier\": true/' "$CHROOT_DIR/home/$USER_NAME/.local/share/orca/user-settings.conf" | ||
443 | 431 | ;; | ||
444 | 432 | speech) | ||
445 | 433 | sed -i -e 's/\"enableSpeech\": false/\"enableSpeech\": true/' "$CHROOT_DIR/home/$USER_NAME/.local/share/orca/user-settings.conf" | ||
446 | 434 | ;; | ||
447 | 435 | braille) | ||
448 | 436 | sed -i -e 's/\"enableBraille\": false/\"enableBraille\": true/' "$CHROOT_DIR/home/$USER_NAME/.local/share/orca/user-settings.conf" | ||
449 | 437 | ;; | ||
450 | 438 | *) | ||
451 | 439 | ;; | ||
452 | 440 | esac | ||
453 | 441 | |||
454 | 442 | if [ "$HOME" = "/root" ] || [ -n "$IN_INITRAMFS" ]; then | ||
455 | 443 | chmod 755 "$CHROOT_DIR/home/$USER_NAME/.local/share/orca" | ||
456 | 444 | $DO_CHROOT chown $USER_NAME.$USER_NAME -R "/home/$USER_NAME/.local" | ||
457 | 445 | fi | ||
458 | 446 | fi | ||
459 | 447 | } | ||
460 | 448 | |||
461 | 449 | set_session() | ||
462 | 450 | { | ||
463 | 451 | local uid=$($DO_CHROOT getent passwd $USER_NAME | awk -F: '{print $3}') | ||
464 | 452 | |||
465 | 453 | # We need to start the accounts daemon somehow and wait for a half second | ||
466 | 454 | # for it to get ready. Calling on AccountsService to set the X session with | ||
467 | 455 | # only one call seems to error out, so querying the user by name seems to get | ||
468 | 456 | # the daemon going. | ||
469 | 457 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
470 | 458 | # I don't like having to write the file manually, but during testing I was | ||
471 | 459 | # unable to get calls via dbus-send to work. | ||
472 | 460 | cat <<EOF > $CHROOT_DIR/var/lib/AccountsService/users/$USER_NAME | ||
473 | 461 | |||
474 | 462 | [User] | ||
475 | 463 | XSession=ubuntu-2d | ||
476 | 464 | EOF | ||
477 | 465 | else | ||
478 | 466 | dbus-send --type=method_call --system --dest=org.freedesktop.Accounts /org/freedesktop/Accounts org.freedesktop.Accounts.FindUserByName string:$USER_NAME | ||
479 | 467 | sleep 1 | ||
480 | 468 | dbus-send --type=method_call --system --reply-timeout=1000 --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User$uid org.freedesktop.Accounts.User.SetXSession string:$1 | ||
481 | 469 | fi | ||
482 | 470 | } | ||
483 | 471 | |||
484 | 472 | create_conf() | ||
485 | 473 | { | ||
486 | 474 | cat <<EOF > /tmp/casper-a11y.conf | ||
487 | 475 | UBIQUITY_A11Y_PROFILE=$1 | ||
488 | 476 | EOF | ||
489 | 477 | } | ||
490 | 478 | |||
491 | 479 | if [ "$#" = "0" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then | ||
492 | 480 | help | ||
493 | 481 | exit 1 | ||
494 | 482 | fi | ||
495 | 483 | |||
496 | 484 | while [ "$#" -gt 0 ]; | ||
497 | 485 | do | ||
498 | 486 | case "$1" in | ||
499 | 487 | -chroot=*) | ||
500 | 488 | CHROOT_DIR="${1#-chroot=}" | ||
501 | 489 | DO_CHROOT="chroot $CHROOT_DIR" | ||
502 | 490 | shift | ||
503 | 491 | continue | ||
504 | 492 | ;; | ||
505 | 493 | -user=*) | ||
506 | 494 | USER_NAME="${1#-user=}" | ||
507 | 495 | DO_SUDO="sudo -u $USER_NAME" | ||
508 | 496 | shift | ||
509 | 497 | continue | ||
510 | 498 | ;; | ||
511 | 499 | -l|-login) | ||
512 | 500 | SET_LOGIN=1 | ||
513 | 501 | shift | ||
514 | 502 | continue | ||
515 | 503 | ;; | ||
516 | 504 | -i|-initramfs) | ||
517 | 505 | IN_INITRAMFS=1 | ||
518 | 506 | shift | ||
519 | 507 | continue | ||
520 | 508 | ;; | ||
521 | 509 | -d|-debug) | ||
522 | 510 | set -x | ||
523 | 511 | shift | ||
524 | 512 | continue | ||
525 | 513 | ;; | ||
526 | 514 | -script) | ||
527 | 515 | STARTUP_SCRIPT=1 | ||
528 | 516 | shift | ||
529 | 517 | continue | ||
530 | 518 | ;; | ||
531 | 519 | *) | ||
532 | 520 | PROFILE_NAME="$1" | ||
533 | 521 | shift | ||
534 | 522 | continue | ||
535 | 523 | ;; | ||
536 | 524 | esac | ||
537 | 525 | done | ||
538 | 526 | |||
539 | 527 | if [ -n "$IN_INITRAMFS" ] && [ -z "$CHROOT_DIR" ]; then | ||
540 | 528 | echo "Error: In initramfs, but no chroot directory specified." | ||
541 | 529 | help | ||
542 | 530 | exit 1 | ||
543 | 531 | elif [ -n "$IN_INITRAMFS" ] && [ -z "$USER_NAME" ]; then | ||
544 | 532 | echo "Error: In initramfs, but no username specified." | ||
545 | 533 | help | ||
546 | 534 | exit 1 | ||
547 | 535 | fi | ||
548 | 536 | |||
549 | 537 | if [ -n "$SET_LOGIN" ] && [ "$HOME" != "/root" ] && [ -z "$IN_INITRAMFS" ]; then | ||
550 | 538 | echo "Error: Setting up accessibility for login requires root privileges." | ||
551 | 539 | help | ||
552 | 540 | exit 1 | ||
553 | 541 | fi | ||
554 | 542 | |||
555 | 543 | |||
556 | 544 | if [ -n "$CHROOT_DIR" ] || [ -n "$USER_NAME" ]; then | ||
557 | 545 | if [ "$HOME" != "/root" ] && [ -z "$IN_INITRAMFS" ]; then | ||
558 | 546 | echo "Error: You are not running as root." | ||
559 | 547 | help | ||
560 | 548 | exit 1 | ||
561 | 549 | fi | ||
562 | 550 | fi | ||
563 | 551 | |||
564 | 552 | if [ -n "$CHROOT_DIR" ]; then | ||
565 | 553 | if [ ! -d "$CHROOT_DIR" ]; then | ||
566 | 554 | echo "Error: Target chroot directory does not exist, or you do not have permission to access it." | ||
567 | 555 | exit 1 | ||
568 | 556 | fi | ||
569 | 557 | if [ -z "$IN_INITRAMFS" ] && ! type chroot >/dev/null 2>&1 ; then | ||
570 | 558 | echo "Error: Chroot command not available in running environment." | ||
571 | 559 | exit 1 | ||
572 | 560 | fi | ||
573 | 561 | fi | ||
574 | 562 | |||
575 | 563 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
576 | 564 | if [ -z "$USER_NAME" ]; then | ||
577 | 565 | echo "Error: You have requested to create a startup script, but no user was specified." | ||
578 | 566 | exit 1 | ||
579 | 567 | fi | ||
580 | 568 | if [ "$HOME" != "/root" ] && [ -z "$IN_INITRAMFS" ]; then | ||
581 | 569 | echo "Error: You have requested to create a startup script, but you do not have root" | ||
582 | 570 | echo "privileges." | ||
583 | 571 | exit 1 | ||
584 | 572 | fi | ||
585 | 573 | if [ -z "$CHROOT_DIR" ]; then | ||
586 | 574 | echo "Error: You have requested to create a startup script, but you did not specify" | ||
587 | 575 | echo "a target directory to chroot to." | ||
588 | 576 | exit 1 | ||
589 | 577 | fi | ||
590 | 578 | fi | ||
591 | 579 | |||
592 | 580 | # If no username was entered on the command line, grab the name of the current | ||
593 | 581 | # user, so we can write files to their home directory. | ||
594 | 582 | if [ -z "$USER_NAME" ]; then | ||
595 | 583 | if [ -z "$USER" ]; then | ||
596 | 584 | USER_NAME="${HOME#/home/}" | ||
597 | 585 | else | ||
598 | 586 | USER_NAME="$USER" | ||
599 | 587 | fi | ||
600 | 588 | fi | ||
601 | 589 | |||
602 | 590 | # Check to see if a few necessary packages are present in the target | ||
603 | 591 | # environment. | ||
604 | 592 | GCONF_VERSION=$($DO_CHROOT /usr/bin/dpkg-query -W --showformat='${Version}' gconf2 2>/dev/null) || GCONF_VERSION="" | ||
605 | 593 | GLIBBIN_VERSION=$($DO_CHROOT /usr/bin/dpkg-query -W --showformat='${Version}' libglib2.0-bin 2>/dev/null) || GLIBBIN_VERSION="" | ||
606 | 594 | ORCA_VERSION=$($DO_CHROOT /usr/bin/dpkg-query -W --showformat='${Version}' gnome-orca 2>/dev/null) || ORCA_VERSION="" | ||
607 | 595 | |||
608 | 596 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
609 | 597 | cat <<EOF > $CHROOT_DIR/etc/init/a11y-profile-settings.conf | ||
610 | 598 | # a11y-profile-settings - A job to set up accessibility settings | ||
611 | 599 | |||
612 | 600 | description "Accessib ility profile settings" | ||
613 | 601 | |||
614 | 602 | start on runlevel [2345] | ||
615 | 603 | |||
616 | 604 | umask 022 | ||
617 | 605 | |||
618 | 606 | script | ||
619 | 607 | sudo -u $USER_NAME /usr/bin/dbus-launch --exit-with-session /usr/bin/a11y-profile-settings | ||
620 | 608 | sudo -u lightdm /usr/bin/dbus-launch --exit-with-session /usr/bin/a11y-profile-settings-lightdm | ||
621 | 609 | rm /usr/bin/a11y-profile-settings /usr/bin/a11y-profile-settings-lightdm | ||
622 | 610 | rm /etc/init/a11y-profile-settings.conf | ||
623 | 611 | end script | ||
624 | 612 | EOF | ||
625 | 613 | cat <<EOF > $CHROOT_DIR/usr/bin/a11y-profile-settings | ||
626 | 614 | #!/bin/sh | ||
627 | 615 | |||
628 | 616 | # Created by the casper accessibility profile settings script on | ||
629 | 617 | # $(date). | ||
630 | 618 | |||
631 | 619 | # This script deletes itself once run. | ||
632 | 620 | |||
633 | 621 | EOF | ||
634 | 622 | cat <<EOF > $CHROOT_DIR/usr/bin/a11y-profile-settings-lightdm | ||
635 | 623 | #!/bin/sh | ||
636 | 624 | |||
637 | 625 | # Created by the casper accessibility profile settings script on | ||
638 | 626 | # $(date). | ||
639 | 627 | |||
640 | 628 | # This script deletes itself once run. | ||
641 | 629 | |||
642 | 630 | EOF | ||
643 | 631 | fi | ||
644 | 632 | |||
645 | 633 | case $PROFILE_NAME in | ||
646 | 634 | high-contrast) | ||
647 | 635 | set_common_lowvis | ||
648 | 636 | set_high_contrast | ||
649 | 637 | create_conf $PROFILE_NAME | ||
650 | 638 | ;; | ||
651 | 639 | magnifier) | ||
652 | 640 | set_common_lowvis | ||
653 | 641 | set_magnifier | ||
654 | 642 | create_conf $PROFILE_NAME | ||
655 | 643 | ;; | ||
656 | 644 | blindness) | ||
657 | 645 | set_common_lowvis | ||
658 | 646 | set_blindness | ||
659 | 647 | create_conf screen-reader | ||
660 | 648 | ;; | ||
661 | 649 | braille) | ||
662 | 650 | set_common_lowvis | ||
663 | 651 | set_braille | ||
664 | 652 | create_conf $PROFILE_NAME | ||
665 | 653 | ;; | ||
666 | 654 | keyboard-modifiers) | ||
667 | 655 | set_common_motor | ||
668 | 656 | set_keyboard_modifiers | ||
669 | 657 | create_conf $PROFILE_NAME | ||
670 | 658 | ;; | ||
671 | 659 | onscreen-keyboard) | ||
672 | 660 | set_common_motor | ||
673 | 661 | set_onscreen_keyboard | ||
674 | 662 | create_conf $PROFILE_NAME | ||
675 | 663 | ;; | ||
676 | 664 | esac | ||
677 | 665 | |||
678 | 666 | if [ -n "$STARTUP_SCRIPT" ]; then | ||
679 | 667 | chmod 755 $CHROOT_DIR/usr/bin/a11y-profile-settings* | ||
680 | 668 | fi | ||
681 | 0 | 669 | ||
682 | === modified file 'bin/casper-preseed' | |||
683 | --- bin/casper-preseed 2006-10-16 15:05:58 +0000 | |||
684 | +++ bin/casper-preseed 2011-10-06 10:04:28 +0000 | |||
685 | @@ -2,18 +2,25 @@ | |||
686 | 2 | set -e | 2 | set -e |
687 | 3 | PATH=/usr/sbin:/usr/bin:/sbin:/bin | 3 | PATH=/usr/sbin:/usr/bin:/sbin:/bin |
688 | 4 | 4 | ||
689 | 5 | # Only do this once. | ||
690 | 6 | if [ -z "$DEBCONF_REDIR" ]; then | ||
691 | 7 | exec <&4 | ||
692 | 8 | export DEBIAN_HAS_FRONTEND=1 | ||
693 | 9 | export DEBCONF_REDIR=1 | ||
694 | 10 | fi | ||
695 | 11 | |||
696 | 5 | root="$1" | 12 | root="$1" |
697 | 13 | . "$root/usr/share/debconf/confmodule" | ||
698 | 14 | |||
699 | 6 | question="$2" | 15 | question="$2" |
700 | 7 | value="$3" | 16 | value="$3" |
701 | 8 | seen="$4" | 17 | seen="$4" |
702 | 9 | [ "$seen" ] || seen=true | 18 | [ "$seen" ] || seen=true |
703 | 10 | 19 | ||
710 | 11 | if ! (echo "SET $question $value"; echo "FSET $question seen $seen") | chroot "$1" debconf-communicate -fnoninteractive casper >/dev/null; then | 20 | if ! db_set "$question" "$value"; then |
711 | 12 | chroot "$1" debconf-communicate -fnoninteractive casper >/dev/null <<EOF | 21 | db_register debian-installer/dummy "$question" |
712 | 13 | REGISTER debian-installer/dummy $question | 22 | db_set "$question" "$value" |
707 | 14 | SET $question $value | ||
708 | 15 | FSET $question seen $seen | ||
709 | 16 | EOF | ||
713 | 17 | fi | 23 | fi |
714 | 24 | db_fset "$question" seen "$seen" | ||
715 | 18 | 25 | ||
716 | 19 | exit 0 | 26 | exit 0 |
717 | 20 | 27 | ||
718 | === added file 'bin/casper-set-selections' | |||
719 | --- bin/casper-set-selections 1970-01-01 00:00:00 +0000 | |||
720 | +++ bin/casper-set-selections 2011-10-06 10:04:28 +0000 | |||
721 | @@ -0,0 +1,92 @@ | |||
722 | 1 | #!/bin/sh | ||
723 | 2 | # Cloned-and-hacked from preseed/debconf-set-selections for casper. | ||
724 | 3 | set -e | ||
725 | 4 | |||
726 | 5 | OLDIFS="$IFS" | ||
727 | 6 | CR=$(echo -en "\r") | ||
728 | 7 | NL=" | ||
729 | 8 | " | ||
730 | 9 | |||
731 | 10 | . /scripts/casper-functions | ||
732 | 11 | load_confmodule | ||
733 | 12 | |||
734 | 13 | # Returns the first field in the current line | ||
735 | 14 | first_field() { | ||
736 | 15 | echo "$line" | grep -q "[[:space:]]" || return 1 | ||
737 | 16 | echo "$line" | sed -r 's/^([^[:space:]]*).*/\1/' | ||
738 | 17 | } | ||
739 | 18 | |||
740 | 19 | # Returns any fields after the first field in the current line | ||
741 | 20 | rest_line() { | ||
742 | 21 | if echo "$line" | grep -q "[[:space:]]"; then | ||
743 | 22 | echo "$line" | sed 's/^[^[:space:]]*[[:space:]]*//' | ||
744 | 23 | fi | ||
745 | 24 | } | ||
746 | 25 | |||
747 | 26 | SEEN=1 | ||
748 | 27 | if [ "$1" = --unseen ]; then | ||
749 | 28 | SEEN= | ||
750 | 29 | shift | ||
751 | 30 | fi | ||
752 | 31 | |||
753 | 32 | file="$1" | ||
754 | 33 | |||
755 | 34 | parse_error() { | ||
756 | 35 | echo "Error parsing preconfiguration file: $*" >&2 | ||
757 | 36 | exit 1 | ||
758 | 37 | } | ||
759 | 38 | |||
760 | 39 | IFS="$NL" | ||
761 | 40 | multiline="" | ||
762 | 41 | # TODO: this squashes \r elsewhere in the line too | ||
763 | 42 | for line in $(grep -v '^#\|^[[:space:]]*$' "$file" | sed "s/$CR//g"); do | ||
764 | 43 | IFS="$OLDIFS" | ||
765 | 44 | |||
766 | 45 | line="$(echo "$line" | sed 's/^[[:space:]]*//')" | ||
767 | 46 | if echo "$line" | grep -q '\\$'; then | ||
768 | 47 | multiline="${multiline:+$multiline }$(echo "$line" | \ | ||
769 | 48 | sed 's/[[:space:]]*\\$//')" | ||
770 | 49 | continue | ||
771 | 50 | elif [ -n "$multiline" ]; then | ||
772 | 51 | line="$multiline $line" | ||
773 | 52 | multiline="" | ||
774 | 53 | fi | ||
775 | 54 | |||
776 | 55 | package="" | ||
777 | 56 | var="" | ||
778 | 57 | type="" | ||
779 | 58 | val="" | ||
780 | 59 | if ! package="$(first_field)"; then | ||
781 | 60 | parse_error "Syntax error: unable to determine template owner" | ||
782 | 61 | fi | ||
783 | 62 | line="$(rest_line)" | ||
784 | 63 | if ! var="$(first_field)"; then | ||
785 | 64 | parse_error "Syntax error: unable to determine template name" | ||
786 | 65 | fi | ||
787 | 66 | line="$(rest_line)" | ||
788 | 67 | if ! type="$(first_field)"; then | ||
789 | 68 | # Allow for lines without separator before an empty value | ||
790 | 69 | if [ "$line" ]; then | ||
791 | 70 | type="$line" | ||
792 | 71 | else | ||
793 | 72 | parse_error "Syntax error: unable to determine template type" | ||
794 | 73 | fi | ||
795 | 74 | fi | ||
796 | 75 | line="$(rest_line)" | ||
797 | 76 | val="$line" | ||
798 | 77 | |||
799 | 78 | if [ "$type" = seen ]; then | ||
800 | 79 | # Set seen flag. | ||
801 | 80 | db_fset "$var" "$type" "$val" || true # how to handle this error? | ||
802 | 81 | else | ||
803 | 82 | if ! db_set "$var" "$val"; then | ||
804 | 83 | # Question does not exist yet. | ||
805 | 84 | db_register debian-installer/dummy "$var" | ||
806 | 85 | db_set "$var" "$val" | ||
807 | 86 | db_subst "$var" ID "$var" | ||
808 | 87 | fi | ||
809 | 88 | if [ "$SEEN" ]; then | ||
810 | 89 | db_fset "$var" seen true | ||
811 | 90 | fi | ||
812 | 91 | fi | ||
813 | 92 | done | ||
814 | 0 | 93 | ||
815 | === modified file 'bin/casper-snapshot' | |||
816 | --- bin/casper-snapshot 2009-06-12 11:46:49 +0000 | |||
817 | +++ bin/casper-snapshot 2011-10-06 10:04:28 +0000 | |||
818 | @@ -215,7 +215,7 @@ | |||
819 | 215 | fi | 215 | fi |
820 | 216 | else | 216 | else |
821 | 217 | if [ -b "${dev}" ] ; then | 217 | if [ -b "${dev}" ] ; then |
823 | 218 | try_mount "${dev}" "${MOUNTP}" rw | 218 | try_mount "${dev}" "${MOUNTP}" rw || panic "failed to mount ${dev}" |
824 | 219 | fi | 219 | fi |
825 | 220 | fi | 220 | fi |
826 | 221 | } | 221 | } |
827 | 222 | 222 | ||
828 | === added file 'bin/casper-update-initramfs' | |||
829 | --- bin/casper-update-initramfs 1970-01-01 00:00:00 +0000 | |||
830 | +++ bin/casper-update-initramfs 2011-10-06 10:04:28 +0000 | |||
831 | @@ -0,0 +1,25 @@ | |||
832 | 1 | #! /bin/sh | ||
833 | 2 | set -e | ||
834 | 3 | update-initramfs.distrib "$@" | ||
835 | 4 | if [ -e /initrd.img ]; then | ||
836 | 5 | bootdir= | ||
837 | 6 | else | ||
838 | 7 | bootdir=/boot | ||
839 | 8 | fi | ||
840 | 9 | # initrd.img may exist when vmlinuz doesn't; for example, if | ||
841 | 10 | # update-initramfs is run on a fresh live USB stick without upgrading the | ||
842 | 11 | # kernel. | ||
843 | 12 | if [ -e "$bootdir/initrd.img" ]; then | ||
844 | 13 | if [ -e /cdrom/casper/initrd.lz ]; then | ||
845 | 14 | zcat "$bootdir/initrd.img" | lzma -9c >/cdrom/casper/initrd.lz.new | ||
846 | 15 | mv /cdrom/casper/initrd.lz.new /cdrom/casper/initrd.lz | ||
847 | 16 | else | ||
848 | 17 | cp "$bootdir/initrd.img" /cdrom/casper/initrd.gz.new | ||
849 | 18 | mv /cdrom/casper/initrd.gz.new /cdrom/casper/initrd.gz | ||
850 | 19 | fi | ||
851 | 20 | fi | ||
852 | 21 | if [ -e "$bootdir/vmlinuz" ]; then | ||
853 | 22 | cp "$bootdir/vmlinuz" /cdrom/casper/vmlinuz.new | ||
854 | 23 | mv /cdrom/casper/vmlinuz.new /cdrom/casper/vmlinuz | ||
855 | 24 | fi | ||
856 | 25 | exit 0 | ||
857 | 0 | 26 | ||
858 | === modified file 'casper-md5check/Makefile' | |||
859 | --- casper-md5check/Makefile 2009-01-30 11:27:37 +0000 | |||
860 | +++ casper-md5check/Makefile 2011-10-06 10:04:28 +0000 | |||
861 | @@ -1,6 +1,7 @@ | |||
862 | 1 | 1 | ||
863 | 2 | CC=gcc | 2 | CC=gcc |
865 | 3 | CFLAGS=$(getconf LFS_CFLAGS) -Wall -O2 | 3 | CFLAGS := $(shell getconf LFS_CFLAGS) -Wall -O2 -g $(shell pkg-config --cflags ply-boot-client) |
866 | 4 | LDLIBS=$(shell pkg-config --libs ply-boot-client) | ||
867 | 4 | 5 | ||
868 | 5 | casper-md5check: casper-md5check.c md5.c | 6 | casper-md5check: casper-md5check.c md5.c |
869 | 6 | 7 | ||
870 | 7 | 8 | ||
871 | === modified file 'casper-md5check/casper-md5check.c' | |||
872 | --- casper-md5check/casper-md5check.c 2009-01-30 11:27:37 +0000 | |||
873 | +++ casper-md5check/casper-md5check.c 2011-10-06 10:04:28 +0000 | |||
874 | @@ -1,6 +1,7 @@ | |||
877 | 1 | /* casper-md5check - a tool to check md5sums and talk to usplash | 1 | /* casper-md5check - a tool to check md5sums and talk to plymouth |
878 | 2 | (C) Canonical Ltd 2006 | 2 | (C) Canonical Ltd 2006, 2010 |
879 | 3 | Written by Tollef Fog Heen <tfheen@ubuntu.com> | 3 | Written by Tollef Fog Heen <tfheen@ubuntu.com> |
880 | 4 | Ported to plymouth by Steve Langasek <steve.langasek@ubuntu.com> | ||
881 | 4 | 5 | ||
882 | 5 | This program is free software; you can redistribute it and/or | 6 | This program is free software; you can redistribute it and/or |
883 | 6 | modify it under the terms of the GNU General Public License as | 7 | modify it under the terms of the GNU General Public License as |
884 | @@ -32,13 +33,17 @@ | |||
885 | 32 | #include <math.h> | 33 | #include <math.h> |
886 | 33 | #include <termios.h> | 34 | #include <termios.h> |
887 | 34 | 35 | ||
890 | 35 | #define USPLASH_FIFO "/dev/.initramfs/usplash_fifo" | 36 | #include <ply-boot-client.h> |
891 | 36 | #define MAXTRIES 5 | 37 | #include <ply-event-loop.h> |
892 | 38 | |||
893 | 37 | #include "md5.h" | 39 | #include "md5.h" |
894 | 38 | #define DEBUG | 40 | #define DEBUG |
895 | 39 | 41 | ||
896 | 40 | static int verbose = 1; | 42 | static int verbose = 1; |
898 | 41 | static int got_usplash = 0; | 43 | static int got_plymouth = 0; |
899 | 44 | static ply_event_loop_t *ply_event_loop = NULL; | ||
900 | 45 | |||
901 | 46 | int set_nocanonical_tty(int fd); | ||
902 | 42 | 47 | ||
903 | 43 | void parse_cmdline(void) { | 48 | void parse_cmdline(void) { |
904 | 44 | FILE *cmdline = fopen("/proc/cmdline", "r"); | 49 | FILE *cmdline = fopen("/proc/cmdline", "r"); |
905 | @@ -60,73 +65,54 @@ | |||
906 | 60 | fclose(cmdline); | 65 | fclose(cmdline); |
907 | 61 | } | 66 | } |
908 | 62 | 67 | ||
930 | 63 | int write_and_retry(int fd, char *s) { | 68 | void plymouth_disconnected(void *user_data, ply_boot_client_t *client) { |
931 | 64 | int try = 0, ret = 0; | 69 | printf("Disconnected from Plymouth\n"); |
932 | 65 | char *end; | 70 | got_plymouth = 0; |
933 | 66 | 71 | ply_event_loop_exit(ply_event_loop, 0); | |
934 | 67 | #ifdef DEBUG | 72 | } |
935 | 68 | fprintf(stderr, "-> %s\n", s); | 73 | |
936 | 69 | #endif | 74 | void plymouth_answer(void *user_data, const char *keys, |
937 | 70 | 75 | ply_boot_client_t *client) | |
938 | 71 | end = s + strlen(s)+1; | 76 | { |
939 | 72 | 77 | ply_event_loop_exit(ply_event_loop, 0); | |
940 | 73 | ret = write(fd, s, end - s); | 78 | } |
941 | 74 | while (s + ret < end && try < MAXTRIES) { | 79 | |
942 | 75 | sleep(1); | 80 | void plymouth_response(void *user_data, ply_boot_client_t *client) { |
943 | 76 | s += ret; | 81 | /* No response */ |
944 | 77 | ret = write(fd, s, strlen(s)+1); | 82 | } |
945 | 78 | try++; | 83 | |
946 | 79 | } | 84 | void plymouth_failure(ply_boot_client_t *client, char *format, ...) { |
926 | 80 | return (s+ret == end ? 0 : 1); | ||
927 | 81 | } | ||
928 | 82 | |||
929 | 83 | void usplash_timeout(int fd, int timeout) { | ||
947 | 84 | char *s; | 85 | char *s; |
948 | 85 | |||
949 | 86 | if (!got_usplash) | ||
950 | 87 | return; | ||
951 | 88 | |||
952 | 89 | asprintf(&s, "TIMEOUT %d", timeout); | ||
953 | 90 | |||
954 | 91 | write_and_retry(fd, s); | ||
955 | 92 | |||
956 | 93 | free(s); | ||
957 | 94 | } | ||
958 | 95 | |||
959 | 96 | void usplash_failure(int fd, char *format, ...) { | ||
960 | 97 | char *s, *s1; | ||
961 | 98 | va_list argp; | 86 | va_list argp; |
962 | 99 | 87 | ||
963 | 100 | va_start(argp, format); | 88 | va_start(argp, format); |
964 | 101 | vasprintf(&s, format, argp); | 89 | vasprintf(&s, format, argp); |
965 | 102 | va_end(argp); | 90 | va_end(argp); |
966 | 103 | 91 | ||
973 | 104 | if (got_usplash) { | 92 | if (got_plymouth) { |
974 | 105 | asprintf(&s1, "FAILURE %s", s); | 93 | ply_boot_client_tell_daemon_to_display_message(client, s, |
975 | 106 | 94 | plymouth_response, | |
976 | 107 | write_and_retry(fd, s1); | 95 | plymouth_response, NULL); |
977 | 108 | 96 | ply_event_loop_process_pending_events(ply_event_loop); | |
972 | 109 | free(s1); | ||
978 | 110 | } else if (verbose) | 97 | } else if (verbose) |
979 | 111 | printf("%s\n", s); | 98 | printf("%s\n", s); |
980 | 112 | 99 | ||
981 | 113 | free(s); | 100 | free(s); |
982 | 114 | } | 101 | } |
983 | 115 | 102 | ||
986 | 116 | void usplash_text(int fd, char *format, ...) { | 103 | void plymouth_text(ply_boot_client_t *client, char *format, ...) { |
987 | 117 | char *s, *s1; | 104 | char *s; |
988 | 118 | va_list argp; | 105 | va_list argp; |
989 | 119 | 106 | ||
990 | 120 | va_start(argp, format); | 107 | va_start(argp, format); |
991 | 121 | vasprintf(&s, format, argp); | 108 | vasprintf(&s, format, argp); |
992 | 122 | va_end(argp); | 109 | va_end(argp); |
993 | 123 | 110 | ||
1000 | 124 | if (got_usplash) { | 111 | if (got_plymouth) { |
1001 | 125 | asprintf(&s1, "TEXT %s", s); | 112 | ply_boot_client_tell_daemon_to_display_message(client, s, |
1002 | 126 | 113 | plymouth_response, | |
1003 | 127 | write_and_retry(fd, s1); | 114 | plymouth_response, NULL); |
1004 | 128 | 115 | ply_event_loop_process_pending_events(ply_event_loop); | |
999 | 129 | free(s1); | ||
1005 | 130 | } else if (verbose) { | 116 | } else if (verbose) { |
1006 | 131 | printf("%s...", s); | 117 | printf("%s...", s); |
1007 | 132 | fflush(stdout); | 118 | fflush(stdout); |
1008 | @@ -135,7 +121,7 @@ | |||
1009 | 135 | free(s); | 121 | free(s); |
1010 | 136 | } | 122 | } |
1011 | 137 | 123 | ||
1013 | 138 | void usplash_urgent(int fd, char *format, ...) { | 124 | void plymouth_prompt(ply_boot_client_t *client, char *format, ...) { |
1014 | 139 | char *s, *s1; | 125 | char *s, *s1; |
1015 | 140 | va_list argp; | 126 | va_list argp; |
1016 | 141 | 127 | ||
1017 | @@ -143,12 +129,41 @@ | |||
1018 | 143 | vasprintf(&s, format, argp); | 129 | vasprintf(&s, format, argp); |
1019 | 144 | va_end(argp); | 130 | va_end(argp); |
1020 | 145 | 131 | ||
1027 | 146 | if (got_usplash) { | 132 | if (got_plymouth) { |
1028 | 147 | asprintf(&s1, "TEXT-URGENT %s", s); | 133 | asprintf(&s1, "keys:%s", s); |
1029 | 148 | 134 | ply_boot_client_tell_daemon_to_display_message(client, s1, | |
1030 | 149 | write_and_retry(fd, s1); | 135 | plymouth_response, |
1031 | 150 | 136 | plymouth_response, NULL); | |
1032 | 151 | free(s1); | 137 | |
1033 | 138 | ply_boot_client_ask_daemon_to_watch_for_keystroke(client, NULL, | ||
1034 | 139 | plymouth_answer, | ||
1035 | 140 | (ply_boot_client_response_handler_t)plymouth_answer, NULL); | ||
1036 | 141 | ply_event_loop_run(ply_event_loop); | ||
1037 | 142 | ply_boot_client_attach_to_event_loop(client, ply_event_loop); | ||
1038 | 143 | ply_boot_client_tell_daemon_to_quit(client, 1, plymouth_response, | ||
1039 | 144 | plymouth_response, NULL); | ||
1040 | 145 | ply_event_loop_run(ply_event_loop); | ||
1041 | 146 | } else { | ||
1042 | 147 | printf("%s\n", s); | ||
1043 | 148 | set_nocanonical_tty(0); | ||
1044 | 149 | getchar(); | ||
1045 | 150 | } | ||
1046 | 151 | free(s); | ||
1047 | 152 | } | ||
1048 | 153 | |||
1049 | 154 | void plymouth_urgent(ply_boot_client_t *client, char *format, ...) { | ||
1050 | 155 | char *s; | ||
1051 | 156 | va_list argp; | ||
1052 | 157 | |||
1053 | 158 | va_start(argp, format); | ||
1054 | 159 | vasprintf(&s, format, argp); | ||
1055 | 160 | va_end(argp); | ||
1056 | 161 | |||
1057 | 162 | if (got_plymouth) { | ||
1058 | 163 | ply_boot_client_tell_daemon_to_display_message(client, s, | ||
1059 | 164 | plymouth_response, | ||
1060 | 165 | plymouth_response, NULL); | ||
1061 | 166 | ply_event_loop_process_pending_events(ply_event_loop); | ||
1062 | 152 | } else | 167 | } else |
1063 | 153 | printf("%s\n", s); | 168 | printf("%s\n", s); |
1064 | 154 | 169 | ||
1065 | @@ -156,27 +171,26 @@ | |||
1066 | 156 | } | 171 | } |
1067 | 157 | 172 | ||
1068 | 158 | 173 | ||
1071 | 159 | void usplash_success(int fd, char *format, ...) { | 174 | void plymouth_success(ply_boot_client_t *client, char *format, ...) { |
1072 | 160 | char *s, *s1; | 175 | char *s; |
1073 | 161 | va_list argp; | 176 | va_list argp; |
1074 | 162 | 177 | ||
1075 | 163 | va_start(argp, format); | 178 | va_start(argp, format); |
1076 | 164 | vasprintf(&s, format, argp); | 179 | vasprintf(&s, format, argp); |
1077 | 165 | va_end(argp); | 180 | va_end(argp); |
1078 | 166 | 181 | ||
1085 | 167 | if (got_usplash) { | 182 | if (got_plymouth) { |
1086 | 168 | asprintf(&s1, "SUCCESS %s", s); | 183 | ply_boot_client_tell_daemon_to_display_message(client, s, |
1087 | 169 | 184 | plymouth_response, | |
1088 | 170 | write_and_retry(fd, s1); | 185 | plymouth_response, NULL); |
1089 | 171 | 186 | ply_event_loop_process_pending_events(ply_event_loop); | |
1084 | 172 | free(s1); | ||
1090 | 173 | } else if (verbose) | 187 | } else if (verbose) |
1091 | 174 | printf("%s\n", s); | 188 | printf("%s\n", s); |
1092 | 175 | 189 | ||
1093 | 176 | free(s); | 190 | free(s); |
1094 | 177 | } | 191 | } |
1095 | 178 | 192 | ||
1097 | 179 | void usplash_progress(int fd, int progress) { | 193 | void plymouth_progress(ply_boot_client_t *client, int progress) { |
1098 | 180 | static int prevprogress = -1; | 194 | static int prevprogress = -1; |
1099 | 181 | char *s; | 195 | char *s; |
1100 | 182 | 196 | ||
1101 | @@ -184,11 +198,11 @@ | |||
1102 | 184 | return; | 198 | return; |
1103 | 185 | prevprogress = progress; | 199 | prevprogress = progress; |
1104 | 186 | 200 | ||
1110 | 187 | if (got_usplash) { | 201 | if (got_plymouth) { |
1111 | 188 | asprintf(&s, "PROGRESS %d", progress); | 202 | asprintf(&s, "md5check:verifying:%d", progress); |
1112 | 189 | 203 | ply_boot_client_update_daemon(client, s, plymouth_response, | |
1113 | 190 | write_and_retry(fd, s); | 204 | plymouth_response, NULL); |
1114 | 191 | 205 | ply_event_loop_process_pending_events(ply_event_loop); | |
1115 | 192 | free(s); | 206 | free(s); |
1116 | 193 | } else { | 207 | } else { |
1117 | 194 | printf("%d%%...", progress); | 208 | printf("%d%%...", progress); |
1118 | @@ -210,7 +224,7 @@ | |||
1119 | 210 | 224 | ||
1120 | 211 | int main(int argc, char **argv) { | 225 | int main(int argc, char **argv) { |
1121 | 212 | 226 | ||
1123 | 213 | int pipe_fd, check_fd; | 227 | int check_fd; |
1124 | 214 | int failed = 0; | 228 | int failed = 0; |
1125 | 215 | 229 | ||
1126 | 216 | FILE *md5_file; | 230 | FILE *md5_file; |
1127 | @@ -219,6 +233,7 @@ | |||
1128 | 219 | char hex_output[16*2 + 1]; | 233 | char hex_output[16*2 + 1]; |
1129 | 220 | char *checksum, *checkfile; | 234 | char *checksum, *checkfile; |
1130 | 221 | ssize_t tsize, csize; | 235 | ssize_t tsize, csize; |
1131 | 236 | ply_boot_client_t *client = NULL; | ||
1132 | 222 | 237 | ||
1133 | 223 | tsize = 0; | 238 | tsize = 0; |
1134 | 224 | csize = 0; | 239 | csize = 0; |
1135 | @@ -236,18 +251,23 @@ | |||
1136 | 236 | 251 | ||
1137 | 237 | parse_cmdline(); | 252 | parse_cmdline(); |
1138 | 238 | 253 | ||
1142 | 239 | pipe_fd = open(USPLASH_FIFO, O_WRONLY|O_NONBLOCK); | 254 | client = ply_boot_client_new(); |
1143 | 240 | 255 | if (client) | |
1144 | 241 | if (pipe_fd == -1) { | 256 | ply_event_loop = ply_event_loop_new(); |
1145 | 257 | if (ply_event_loop) | ||
1146 | 258 | ply_boot_client_attach_to_event_loop(client, ply_event_loop); | ||
1147 | 259 | |||
1148 | 260 | if (!client || !ply_event_loop || !ply_boot_client_connect(client, plymouth_disconnected, NULL)) | ||
1149 | 261 | { | ||
1150 | 242 | /* Fall back to text output */ | 262 | /* Fall back to text output */ |
1153 | 243 | perror("Opening pipe"); | 263 | perror("Connecting to plymouth"); |
1154 | 244 | got_usplash = 0; | 264 | got_plymouth = 0; |
1155 | 245 | } else | 265 | } else |
1161 | 246 | got_usplash = 1; | 266 | got_plymouth = 1; |
1162 | 247 | 267 | ||
1163 | 248 | 268 | ||
1164 | 249 | usplash_progress(pipe_fd, 0); | 269 | plymouth_progress(client, 0); |
1165 | 250 | usplash_urgent(pipe_fd, "Checking integrity, this may take some time"); | 270 | plymouth_urgent(client, "Checking integrity, this may take some time"); |
1166 | 251 | md5_file = fopen(argv[2], "r"); | 271 | md5_file = fopen(argv[2], "r"); |
1167 | 252 | if (!md5_file) { | 272 | if (!md5_file) { |
1168 | 253 | perror("fopen md5_file"); | 273 | perror("fopen md5_file"); |
1169 | @@ -272,12 +292,11 @@ | |||
1170 | 272 | 292 | ||
1171 | 273 | md5_init(&state); | 293 | md5_init(&state); |
1172 | 274 | 294 | ||
1174 | 275 | usplash_text(pipe_fd, "Checking %s", checkfile); | 295 | plymouth_text(client, "Checking %s", checkfile); |
1175 | 276 | 296 | ||
1176 | 277 | check_fd = open(checkfile, O_RDONLY); | 297 | check_fd = open(checkfile, O_RDONLY); |
1177 | 278 | if (check_fd < 0) { | 298 | if (check_fd < 0) { |
1180 | 279 | usplash_timeout(pipe_fd, 300); | 299 | plymouth_failure(client, "%s: %s", checkfile, strerror(errno)); |
1179 | 280 | usplash_failure(pipe_fd, "%s", strerror(errno)); | ||
1181 | 281 | sleep(10); | 300 | sleep(10); |
1182 | 282 | } | 301 | } |
1183 | 283 | 302 | ||
1184 | @@ -285,7 +304,7 @@ | |||
1185 | 285 | 304 | ||
1186 | 286 | while (rsize > 0) { | 305 | while (rsize > 0) { |
1187 | 287 | csize += rsize; | 306 | csize += rsize; |
1189 | 288 | usplash_progress(pipe_fd, 100*((long double)csize)/tsize); | 307 | plymouth_progress(client, 100*((long double)csize)/tsize); |
1190 | 289 | 308 | ||
1191 | 290 | md5_append(&state, (const md5_byte_t *)buf, rsize); | 309 | md5_append(&state, (const md5_byte_t *)buf, rsize); |
1192 | 291 | rsize = read(check_fd, buf, sizeof(buf)); | 310 | rsize = read(check_fd, buf, sizeof(buf)); |
1193 | @@ -298,9 +317,9 @@ | |||
1194 | 298 | sprintf(hex_output + i * 2, "%02x", digest[i]); | 317 | sprintf(hex_output + i * 2, "%02x", digest[i]); |
1195 | 299 | 318 | ||
1196 | 300 | if (strncmp(hex_output, checksum, strlen(hex_output)) == 0) { | 319 | if (strncmp(hex_output, checksum, strlen(hex_output)) == 0) { |
1198 | 301 | usplash_success(pipe_fd, "OK"); | 320 | plymouth_success(client, "%s: OK", checkfile); |
1199 | 302 | } else { | 321 | } else { |
1201 | 303 | usplash_failure(pipe_fd, "mismatch"); | 322 | plymouth_failure(client, "%s: mismatch", checkfile); |
1202 | 304 | failed++; | 323 | failed++; |
1203 | 305 | } | 324 | } |
1204 | 306 | free(checksum); | 325 | free(checksum); |
1205 | @@ -308,14 +327,13 @@ | |||
1206 | 308 | } | 327 | } |
1207 | 309 | fclose(md5_file); | 328 | fclose(md5_file); |
1208 | 310 | if (failed) { | 329 | if (failed) { |
1210 | 311 | usplash_urgent(pipe_fd, "Check finished: errors found in %d files!", failed); | 330 | plymouth_urgent(client, "Check finished: errors found in %d files!", failed); |
1211 | 312 | } else { | 331 | } else { |
1213 | 313 | usplash_urgent(pipe_fd, "Check finished: no errors found"); | 332 | plymouth_urgent(client, "Check finished: no errors found"); |
1214 | 314 | } | 333 | } |
1219 | 315 | usplash_urgent(pipe_fd, "Press any key to reboot your system"); | 334 | |
1220 | 316 | usplash_timeout(pipe_fd, 86400); | 335 | plymouth_prompt(client, "Press any key to reboot your system"); |
1221 | 317 | set_nocanonical_tty(0); | 336 | |
1218 | 318 | getchar(); | ||
1222 | 319 | reboot(LINUX_REBOOT_CMD_RESTART); | 337 | reboot(LINUX_REBOOT_CMD_RESTART); |
1223 | 320 | return 0; | 338 | return 0; |
1224 | 321 | 339 | ||
1225 | 322 | 340 | ||
1226 | === modified file 'conf.d/compcache' | |||
1227 | --- conf.d/compcache 2008-09-12 08:13:38 +0000 | |||
1228 | +++ conf.d/compcache 2011-10-06 10:04:28 +0000 | |||
1229 | @@ -1,1 +1,1 @@ | |||
1231 | 1 | COMPCACHE_SIZE="25%" | 1 | COMPCACHE_SIZE="50%" |
1232 | 2 | 2 | ||
1233 | === modified file 'debian/casper.init' | |||
1234 | --- debian/casper.init 2009-10-09 14:59:34 +0000 | |||
1235 | +++ debian/casper.init 2011-10-06 10:04:28 +0000 | |||
1236 | @@ -46,7 +46,7 @@ | |||
1237 | 46 | find "$path" -type f | xargs cat > /dev/null 2>&1 | 46 | find "$path" -type f | xargs cat > /dev/null 2>&1 |
1238 | 47 | elif [ -f "$path" ]; then | 47 | elif [ -f "$path" ]; then |
1239 | 48 | if [ -x "$path" ]; then | 48 | if [ -x "$path" ]; then |
1241 | 49 | if file "$path" | grep -q 'dynamically linked'; then | 49 | if file -L "$path" | grep -q 'dynamically linked'; then |
1242 | 50 | for lib in $(ldd "$path" | awk '{ print $3 }'); do | 50 | for lib in $(ldd "$path" | awk '{ print $3 }'); do |
1243 | 51 | cache_path "$lib" | 51 | cache_path "$lib" |
1244 | 52 | done | 52 | done |
1245 | @@ -89,7 +89,7 @@ | |||
1246 | 89 | prompt= | 89 | prompt= |
1247 | 90 | fi | 90 | fi |
1248 | 91 | 91 | ||
1250 | 92 | for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty); do | 92 | for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty) /bin/plymouth /sbin/usplash_write; do |
1251 | 93 | cache_path "$path" | 93 | cache_path "$path" |
1252 | 94 | done | 94 | done |
1253 | 95 | 95 | ||
1254 | @@ -97,17 +97,23 @@ | |||
1255 | 97 | 97 | ||
1256 | 98 | [ "$prompt" ] || return 0 | 98 | [ "$prompt" ] || return 0 |
1257 | 99 | 99 | ||
1258 | 100 | stty sane < /dev/console | ||
1259 | 101 | |||
1260 | 102 | # XXX - i18n | 100 | # XXX - i18n |
1266 | 103 | echo "Please remove the disc and close the tray (if any) then press ENTER: " > /dev/console | 101 | MSG="Please remove installation media and close the tray (if any) then press ENTER: " |
1267 | 104 | if [ -x /sbin/usplash_write ]; then | 102 | |
1268 | 105 | /sbin/usplash_write "TIMEOUT 86400" | 103 | if [ -x /bin/plymouth ] && plymouth --ping; then |
1269 | 106 | /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)" | 104 | plymouth message --text="$MSG" |
1270 | 107 | /sbin/usplash_write "TEXT-URGENT and press ENTER to continue" | 105 | plymouth watch-keystroke > /dev/null |
1271 | 106 | else | ||
1272 | 107 | stty sane < /dev/console | ||
1273 | 108 | |||
1274 | 109 | echo $MSG > /dev/console | ||
1275 | 110 | if [ -x /sbin/usplash_write ]; then | ||
1276 | 111 | /sbin/usplash_write "TIMEOUT 86400" | ||
1277 | 112 | /sbin/usplash_write "TEXT-URGENT Please remove installation media, close the tray" | ||
1278 | 113 | /sbin/usplash_write "TEXT-URGENT (if any) and press ENTER to continue" | ||
1279 | 114 | fi | ||
1280 | 115 | read x < /dev/console | ||
1281 | 108 | fi | 116 | fi |
1282 | 109 | |||
1283 | 110 | read x < /dev/console | ||
1284 | 111 | } | 117 | } |
1285 | 112 | 118 | ||
1286 | 113 | case "$1" in | 119 | case "$1" in |
1287 | 114 | 120 | ||
1288 | === modified file 'debian/casper.install' | |||
1289 | --- debian/casper.install 2009-09-23 14:21:43 +0000 | |||
1290 | +++ debian/casper.install 2011-10-06 10:04:28 +0000 | |||
1291 | @@ -1,9 +1,12 @@ | |||
1292 | 1 | bin/casper-a11y-enable usr/bin | ||
1293 | 1 | bin/casper-getty sbin | 2 | bin/casper-getty sbin |
1294 | 2 | bin/casper-login sbin | 3 | bin/casper-login sbin |
1295 | 3 | bin/casper-new-uuid sbin | 4 | bin/casper-new-uuid sbin |
1296 | 4 | bin/casper-preseed usr/share/casper | 5 | bin/casper-preseed usr/share/casper |
1297 | 5 | bin/casper-reconfigure usr/share/casper | 6 | bin/casper-reconfigure usr/share/casper |
1298 | 7 | bin/casper-set-selections usr/share/casper | ||
1299 | 6 | bin/casper-snapshot sbin | 8 | bin/casper-snapshot sbin |
1300 | 9 | bin/casper-update-initramfs usr/share/casper | ||
1301 | 7 | hooks usr/share/initramfs-tools | 10 | hooks usr/share/initramfs-tools |
1302 | 8 | scripts usr/share/initramfs-tools | 11 | scripts usr/share/initramfs-tools |
1303 | 9 | conf.d usr/share/initramfs-tools | 12 | conf.d usr/share/initramfs-tools |
1304 | 10 | 13 | ||
1305 | === modified file 'debian/casper.postinst' | |||
1306 | --- debian/casper.postinst 2006-07-21 11:19:15 +0000 | |||
1307 | +++ debian/casper.postinst 2011-10-06 10:04:28 +0000 | |||
1308 | @@ -1,5 +1,15 @@ | |||
1309 | 1 | #! /bin/sh | 1 | #! /bin/sh |
1310 | 2 | 2 | ||
1311 | 3 | # If running from writable media, make sure that update-initramfs is | ||
1312 | 4 | # properly a symlink. | ||
1313 | 5 | if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 1.253 && \ | ||
1314 | 6 | [ -w /cdrom ] && [ -e /usr/sbin/update-initramfs.distrib ] && \ | ||
1315 | 7 | [ ! -L /usr/sbin/update-initramfs ] && \ | ||
1316 | 8 | fgrep -qs update-initramfs.distrib /usr/sbin/update-initramfs; then | ||
1317 | 9 | ln -nsf /usr/share/casper/casper-update-initramfs \ | ||
1318 | 10 | /usr/sbin/update-initramfs | ||
1319 | 11 | fi | ||
1320 | 12 | |||
1321 | 3 | update-initramfs -u | 13 | update-initramfs -u |
1322 | 4 | 14 | ||
1323 | 5 | #DEBHELPER# | 15 | #DEBHELPER# |
1324 | 6 | 16 | ||
1325 | === modified file 'debian/changelog' | |||
1326 | --- debian/changelog 2010-09-28 23:07:27 +0000 | |||
1327 | +++ debian/changelog 2011-10-06 10:04:28 +0000 | |||
1328 | @@ -1,4 +1,732 @@ | |||
1330 | 1 | casper (1.211) UNRELEASED; urgency=low | 1 | casper (1.285) UNRELEASED; urgency=low |
1331 | 2 | |||
1332 | 3 | * scripts/casper: | ||
1333 | 4 | - enable use of virtio devices in is_nice_device() | ||
1334 | 5 | |||
1335 | 6 | -- Ante Karamatic <ivoks@ubuntu.com> Thu, 06 Oct 2011 05:29:13 -0400 | ||
1336 | 7 | |||
1337 | 8 | casper (1.284) oneiric; urgency=low | ||
1338 | 9 | |||
1339 | 10 | * bin/casper-a11y-enable: | ||
1340 | 11 | - Set the session by calling AccountService via dbus instead of using | ||
1341 | 12 | lightdm commands, as we cannot run lightdm-set-defaults as a user | ||
1342 | 13 | - Add some extra spaces to make sure the startup scripts used to set a11y | ||
1343 | 14 | settings are syntactically correct | ||
1344 | 15 | - Add some other needed settings for various profiles for use in the login | ||
1345 | 16 | manager | ||
1346 | 17 | - Set correct permissions for the orca config directory once the config | ||
1347 | 18 | files have been created | ||
1348 | 19 | - Make sure the startup script checks take into account the ability to be | ||
1349 | 20 | run from the initramfs | ||
1350 | 21 | * ubiquity-hooks/30accessibility: | ||
1351 | 22 | - Make sure that accessibility profile settings are properly applied at | ||
1352 | 23 | install time, even if the user decided to try Ubuntu first, and then | ||
1353 | 24 | run the install from the desktop | ||
1354 | 25 | - Copy any existing orca configuration to the target system | ||
1355 | 26 | - Make sure profile settings are not set up twice | ||
1356 | 27 | |||
1357 | 28 | -- Luke Yelavich <themuso@ubuntu.com> Wed, 14 Sep 2011 16:19:59 +1000 | ||
1358 | 29 | |||
1359 | 30 | casper (1.283) oneiric; urgency=low | ||
1360 | 31 | |||
1361 | 32 | * scripts/casper-bottom/22screensaver: Set gsettings key instead of gconf. | ||
1362 | 33 | * scripts/casper-bottom/44pk_allow_ubuntu: Drop old PolicyKit stuff, it's | ||
1363 | 34 | gone for a long time. | ||
1364 | 35 | * Drop scripts/casper-bottom/45disable_guest_account: We are not using gdm | ||
1365 | 36 | any more, and lightdm implements that differently. | ||
1366 | 37 | * Drop scripts/casper-bottom/47une_ubiquity, UNE/netbook-launcher are | ||
1367 | 38 | history. | ||
1368 | 39 | * Add scripts/casper-bottom/26disable_user_menu: Disable the user indicator | ||
1369 | 40 | menu. (LP: #834137) | ||
1370 | 41 | |||
1371 | 42 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 07 Sep 2011 12:33:57 +0200 | ||
1372 | 43 | |||
1373 | 44 | casper (1.282) oneiric; urgency=low | ||
1374 | 45 | |||
1375 | 46 | * bin/casper-a11y-enable: Fix typo/syntax error in the set_session function | ||
1376 | 47 | |||
1377 | 48 | -- Luke Yelavich <themuso@ubuntu.com> Wed, 07 Sep 2011 15:20:05 +1000 | ||
1378 | 49 | |||
1379 | 50 | casper (1.281) oneiric; urgency=low | ||
1380 | 51 | |||
1381 | 52 | * bin/casper-a11y-enable: | ||
1382 | 53 | - Change all remaining references of gdm to lightdm, particularly in the | ||
1383 | 54 | usage help text, and the username of the login manager | ||
1384 | 55 | - Set the default login session to ubuntu-2d for screen reader and braille | ||
1385 | 56 | profiles | ||
1386 | 57 | |||
1387 | 58 | -- Luke Yelavich <themuso@ubuntu.com> Mon, 05 Sep 2011 15:02:31 +1000 | ||
1388 | 59 | |||
1389 | 60 | casper (1.280) oneiric; urgency=low | ||
1390 | 61 | |||
1391 | 62 | * Don't fail to set up autologin on a commented out autologin-user line | ||
1392 | 63 | in lightdm custom conf. (LP: #836727) | ||
1393 | 64 | |||
1394 | 65 | -- Mario Limonciello <Mario_Limonciello@Dell.com> Mon, 29 Aug 2011 09:16:00 -0500 | ||
1395 | 66 | |||
1396 | 67 | casper (1.279) oneiric; urgency=low | ||
1397 | 68 | |||
1398 | 69 | * hooks/casper: pull in overlayfs kernel module to allow use of overlayfs | ||
1399 | 70 | as the union mount during install. | ||
1400 | 71 | |||
1401 | 72 | -- Andy Whitcroft <apw@canonical.com> Fri, 19 Aug 2011 13:03:27 +0100 | ||
1402 | 73 | |||
1403 | 74 | casper (1.278) oneiric; urgency=low | ||
1404 | 75 | |||
1405 | 76 | * scripts/casper-bottom/15autologin: | ||
1406 | 77 | - handling lightdm.conf in the case we already have a configuration file (to | ||
1407 | 78 | avoid overwriting it on the cd if we don't have the default gtk greeter | ||
1408 | 79 | installed if greeter not specified). Flavors should now use | ||
1409 | 80 | set-lightdm-defaults to set the default session and greeter, even if | ||
1410 | 81 | this still works with current alternatives method. | ||
1411 | 82 | |||
1412 | 83 | -- Didier Roche <didrocks@ubuntu.com> Thu, 11 Aug 2011 09:05:43 +0200 | ||
1413 | 84 | |||
1414 | 85 | casper (1.277) oneiric; urgency=low | ||
1415 | 86 | |||
1416 | 87 | * Add an extra command-line argument to casper-a11y-helper which will | ||
1417 | 88 | create a startup script that will be executed either on first boot after | ||
1418 | 89 | install, or once we switch out of the initramfs to boot the live | ||
1419 | 90 | session. This is needed to work around gsettings not working when | ||
1420 | 91 | chrooting to the target environment with no dbus running. | ||
1421 | 92 | * Add extra checks to the ubiquity accessibility target-config hook to | ||
1422 | 93 | determine whether accessibility was enabled during the running of | ||
1423 | 94 | ubiquity, and act accordingly. | ||
1424 | 95 | * Call the casper a11y helper script with the newly added -script argument | ||
1425 | 96 | as per above. | ||
1426 | 97 | * Determine whether we are root by checking the $HOME variable. | ||
1427 | 98 | * Do not call the a11y profile script in debug mode | ||
1428 | 99 | |||
1429 | 100 | -- Luke Yelavich <themuso@ubuntu.com> Fri, 05 Aug 2011 15:22:27 +1000 | ||
1430 | 101 | |||
1431 | 102 | casper (1.276) oneiric; urgency=low | ||
1432 | 103 | |||
1433 | 104 | * If lightdm.conf exists, remove it first to avoid issues with symlinks. | ||
1434 | 105 | |||
1435 | 106 | -- Stéphane Graber <stgraber@ubuntu.com> Thu, 04 Aug 2011 12:26:08 -0400 | ||
1436 | 107 | |||
1437 | 108 | casper (1.275) oneiric; urgency=low | ||
1438 | 109 | |||
1439 | 110 | * Update 15autologin to overwrite any existing lightdm configuration. | ||
1440 | 111 | This should fix lightdm autologin for everyone. | ||
1441 | 112 | Any custom lightdm configuration won't apply to the live environment. | ||
1442 | 113 | |||
1443 | 114 | -- Stéphane Graber <stgraber@ubuntu.com> Wed, 03 Aug 2011 10:10:48 -0400 | ||
1444 | 115 | |||
1445 | 116 | casper (1.274) oneiric; urgency=low | ||
1446 | 117 | |||
1447 | 118 | * Remove log_end_message call (LP: #820284). | ||
1448 | 119 | |||
1449 | 120 | -- Evan Dandrea <ev@ubuntu.com> Wed, 03 Aug 2011 12:01:57 +0100 | ||
1450 | 121 | |||
1451 | 122 | casper (1.273) oneiric; urgency=low | ||
1452 | 123 | |||
1453 | 124 | [ Mario Limonciello ] | ||
1454 | 125 | * scripts/casper: Add support for SAS controllers now that 575297 is fixed. | ||
1455 | 126 | (LP: #819564) | ||
1456 | 127 | |||
1457 | 128 | [ Stéphane Graber ] | ||
1458 | 129 | * lightdm no longer ships with /etc/lightdm/lightdm.conf in its package. | ||
1459 | 130 | Updating 15autologin casper hook to create one when missing. (LP: #819609) | ||
1460 | 131 | |||
1461 | 132 | -- Stéphane Graber <stgraber@ubuntu.com> Tue, 02 Aug 2011 17:47:10 -0400 | ||
1462 | 133 | |||
1463 | 134 | casper (1.272) oneiric; urgency=low | ||
1464 | 135 | |||
1465 | 136 | [ Andy Whitcroft ] | ||
1466 | 137 | * scripts/casper: add support for overlayfs for union mounts of the liveCD | ||
1467 | 138 | |||
1468 | 139 | [ Luke Yelavich ] | ||
1469 | 140 | * Port the rest of the accessibility profile settings to gsettings, except | ||
1470 | 141 | where gconf settings are required, eg firefox and gksu | ||
1471 | 142 | * bin/casper-a11y-enable: Extract the username from the $HOME environment | ||
1472 | 143 | variable, as $USER is not set when ubiquity calls the script, even with | ||
1473 | 144 | all privileges dropped | ||
1474 | 145 | |||
1475 | 146 | -- Luke Yelavich <themuso@ubuntu.com> Wed, 27 Jul 2011 15:20:11 +1000 | ||
1476 | 147 | |||
1477 | 148 | casper (1.271) oneiric; urgency=low | ||
1478 | 149 | |||
1479 | 150 | * bin/casper-a11y-enable: | ||
1480 | 151 | - Use -x when enabling debug mode | ||
1481 | 152 | - Adjust some variable quoting when checking for package versions | ||
1482 | 153 | - Do not break out of the command-line checking loop at all, let it run its | ||
1483 | 154 | course until there are no command-line values left to parse | ||
1484 | 155 | |||
1485 | 156 | -- Luke Yelavich <themuso@ubuntu.com> Fri, 01 Jul 2011 11:47:31 +0100 | ||
1486 | 157 | |||
1487 | 158 | casper (1.270) oneiric; urgency=low | ||
1488 | 159 | |||
1489 | 160 | * Depend on lzma for our diverted update-initramfs (LP: #790794). | ||
1490 | 161 | |||
1491 | 162 | -- Colin Watson <cjwatson@ubuntu.com> Thu, 30 Jun 2011 10:30:49 +0100 | ||
1492 | 163 | |||
1493 | 164 | casper (1.269) oneiric; urgency=low | ||
1494 | 165 | |||
1495 | 166 | [ Luke Yelavich ] | ||
1496 | 167 | * bin/casper-a11y-helper: | ||
1497 | 168 | - Migrate blindness and braille accessibility profiles to gsettings for | ||
1498 | 169 | all except gksu, which still uses gconf to store settings. | ||
1499 | 170 | |||
1500 | 171 | [ Colin Watson ] | ||
1501 | 172 | * Add LightDM autologin support (LP: #797669). | ||
1502 | 173 | |||
1503 | 174 | -- Colin Watson <cjwatson@ubuntu.com> Fri, 17 Jun 2011 12:52:44 +0100 | ||
1504 | 175 | |||
1505 | 176 | casper (1.268) oneiric; urgency=low | ||
1506 | 177 | |||
1507 | 178 | The big accessibility profile code refactor: | ||
1508 | 179 | * debian/copyright: Update Canonical copyright years to include 2011 | ||
1509 | 180 | * bin/casper-a11y-helper: Create a new script that will be callable from | ||
1510 | 181 | casper/the initramfs, ubiquity at the maybe-ubiquity screen, and ubiquity | ||
1511 | 182 | when running through ubiquity-hooks during the installation process. | ||
1512 | 183 | - Copy accessibility profile settings from both | ||
1513 | 184 | scripts/casper-bottom/30accessibility and ubiquity-hooks/30accessibility | ||
1514 | 185 | - Refactor profile settings into groups of common settings for low vision | ||
1515 | 186 | and motor profiles, with the rest of the settings broken up into | ||
1516 | 187 | individual methods for each profile | ||
1517 | 188 | - Add options to allow for calling the script from within the initramfs | ||
1518 | 189 | - Do a few more package checks to make sure the target environment has the | ||
1519 | 190 | commands we need to set things up | ||
1520 | 191 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1521 | 192 | - Remove old profile settings and support code, and make use of the new | ||
1522 | 193 | a11y helper script | ||
1523 | 194 | - Call the helper with debugging enabled for now, to help with testing | ||
1524 | 195 | to make sure the new helper is executing properly | ||
1525 | 196 | * debian/casper.install: Add casper-a11y-helper | ||
1526 | 197 | |||
1527 | 198 | -- Luke Yelavich <themuso@ubuntu.com> Wed, 08 Jun 2011 15:35:39 +1000 | ||
1528 | 199 | |||
1529 | 200 | casper (1.267) oneiric; urgency=low | ||
1530 | 201 | |||
1531 | 202 | * scripts/casper-bottom/32disable_hibernation: Drop obsolete | ||
1532 | 203 | gnome-power-manager and kde-profile configuration, and just globally | ||
1533 | 204 | disable hibernation via policykit. (LP: #610351) | ||
1534 | 205 | |||
1535 | 206 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 08 Jun 2011 07:25:43 +0200 | ||
1536 | 207 | |||
1537 | 208 | casper (1.266) oneiric; urgency=low | ||
1538 | 209 | |||
1539 | 210 | * Disable release-upgrade prompts in the live session (LP: #777759). | ||
1540 | 211 | |||
1541 | 212 | -- Colin Watson <cjwatson@ubuntu.com> Thu, 05 May 2011 12:28:33 +0100 | ||
1542 | 213 | |||
1543 | 214 | casper (1.265) natty; urgency=low | ||
1544 | 215 | |||
1545 | 216 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1546 | 217 | - Use gsettings to adjust yelp caret navigation, as properly fixed in | ||
1547 | 218 | yelp 3.0.1 | ||
1548 | 219 | * ubiquity-hooks/30accessibility: Fix the gset function to set settings for | ||
1549 | 220 | the target username, and not the username of the live user | ||
1550 | 221 | |||
1551 | 222 | -- Luke Yelavich <themuso@ubuntu.com> Mon, 11 Apr 2011 16:47:46 +1000 | ||
1552 | 223 | |||
1553 | 224 | casper (1.264) natty; urgency=low | ||
1554 | 225 | |||
1555 | 226 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1556 | 227 | - Enable yelp carrot navigation by default in the moderate visual | ||
1557 | 228 | impairment, blindness, and Braille profiles, thanks to Attila Hammer | ||
1558 | 229 | for the patch (LP: #752503) | ||
1559 | 230 | |||
1560 | 231 | -- Luke Yelavich <themuso@ubuntu.com> Thu, 07 Apr 2011 10:17:52 +1000 | ||
1561 | 232 | |||
1562 | 233 | casper (1.263) natty; urgency=low | ||
1563 | 234 | |||
1564 | 235 | [ Evan Dandrea ] | ||
1565 | 236 | * Suppress Log Out item in the live session (LP: #750140). | ||
1566 | 237 | |||
1567 | 238 | [ Martin Pitt ] | ||
1568 | 239 | * scripts/casper-helpers, find_cow_device(): Do not ever probe floppy | ||
1569 | 240 | devices. There are lots of computers which still have a floppy controller | ||
1570 | 241 | (and thus a /dev/fd0), but no actual floppy. Trying to send anything to | ||
1571 | 242 | /dev/fd0 will result in very long timeouts. Here this causes booting the | ||
1572 | 243 | live CD to take more than 30 minutes. (See also LP #539515 for the | ||
1573 | 244 | corresponding bug in udev/udisks). (LP: #739774) | ||
1574 | 245 | |||
1575 | 246 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 04 Apr 2011 16:12:34 +0200 | ||
1576 | 247 | |||
1577 | 248 | casper (1.262) natty; urgency=low | ||
1578 | 249 | |||
1579 | 250 | * scripts/casper-bottom/30accessibility: | ||
1580 | 251 | - Don't blindly assume that there are no orca config files/directories in | ||
1581 | 252 | the created user's home directory. A derivative may have placed something | ||
1582 | 253 | in /etc/skel as part of the live filesystem, and we shouldn't be | ||
1583 | 254 | clobbering it, thanks to Attila Hammer for the pointer (LP: #744227) | ||
1584 | 255 | |||
1585 | 256 | -- Luke Yelavich <themuso@ubuntu.com> Mon, 04 Apr 2011 17:32:40 +1000 | ||
1586 | 257 | |||
1587 | 258 | casper (1.261) natty; urgency=low | ||
1588 | 259 | |||
1589 | 260 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1590 | 261 | - Also use classic GNOME for the "motor difficulties, pointing devices" | ||
1591 | 262 | profile, due to issues with on-screen keyboards and unity search | ||
1592 | 263 | |||
1593 | 264 | -- Luke Yelavich <themuso@ubuntu.com> Mon, 04 Apr 2011 16:15:59 +1000 | ||
1594 | 265 | |||
1595 | 266 | casper (1.260) natty; urgency=low | ||
1596 | 267 | |||
1597 | 268 | [ Colin Watson ] | ||
1598 | 269 | * Force apt-cdrom's mount point to /cdrom (LP: #723357). I've left the | ||
1599 | 270 | /media/cdrom symlink introduced in 1.259 in place anyway, as it's | ||
1600 | 271 | harmless on the live CD and may save some effort elsewhere. | ||
1601 | 272 | |||
1602 | 273 | [ Luke Yelavich ] | ||
1603 | 274 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1604 | 275 | - Set the default session to classic GNOME for moderate visual | ||
1605 | 276 | impairement, blindness, and braille accessibility profiles (LP: #734659) | ||
1606 | 277 | - Fix a few dangling references to user-settings.py (LP: #744214) | ||
1607 | 278 | - Don't set /desktop/gnome/accessibility/keyboard/enable for vision | ||
1608 | 279 | related profiles (LP: #711131) | ||
1609 | 280 | |||
1610 | 281 | -- Luke Yelavich <themuso@ubuntu.com> Fri, 01 Apr 2011 16:13:07 +1100 | ||
1611 | 282 | |||
1612 | 283 | casper (1.259) natty; urgency=low | ||
1613 | 284 | |||
1614 | 285 | * scripts/casper-bottom/05mountpoints: Create a /media/cdrom -> /cdrom | ||
1615 | 286 | symlink, to work around apt's changed default mount point for Alpha-3. | ||
1616 | 287 | (LP: #727783) | ||
1617 | 288 | |||
1618 | 289 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 03 Mar 2011 11:52:38 +0100 | ||
1619 | 290 | |||
1620 | 291 | casper (1.258) natty; urgency=low | ||
1621 | 292 | |||
1622 | 293 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1623 | 294 | - Remove code that removes applets from the panel. Indicators are the | ||
1624 | 295 | way forward, and we have unity, which works differently. | ||
1625 | 296 | - Write orca configuration in json format | ||
1626 | 297 | - Set some settings in gsettings parallel to gconf, next cycle there | ||
1627 | 298 | will be a full migration to gsettings. | ||
1628 | 299 | - Do not change the default window manager setting, this will be done | ||
1629 | 300 | according to what is detected with unity/compiz et al. | ||
1630 | 301 | |||
1631 | 302 | -- Luke Yelavich <themuso@ubuntu.com> Wed, 23 Feb 2011 15:18:23 +1100 | ||
1632 | 303 | |||
1633 | 304 | casper (1.257) natty; urgency=low | ||
1634 | 305 | |||
1635 | 306 | * Handle $cow_backing already being mounted elsewhere (LP: #683260). | ||
1636 | 307 | |||
1637 | 308 | -- Evan Dandrea <ev@ubuntu.com> Fri, 11 Feb 2011 16:41:11 +0000 | ||
1638 | 309 | |||
1639 | 310 | casper (1.256) natty; urgency=low | ||
1640 | 311 | |||
1641 | 312 | * Add scripts/casper-bottom/49kubuntu_mobile_session to run Kubuntu | ||
1642 | 313 | mobile session | ||
1643 | 314 | |||
1644 | 315 | -- Jonathan Riddell <jriddell@ubuntu.com> Thu, 10 Feb 2011 17:42:34 +0000 | ||
1645 | 316 | |||
1646 | 317 | casper (1.255) natty; urgency=low | ||
1647 | 318 | |||
1648 | 319 | [ Evan Dandrea ] | ||
1649 | 320 | * Don't disable the free space notifier if using persistent storage. | ||
1650 | 321 | |||
1651 | 322 | [ Daniel Manrique ] | ||
1652 | 323 | * scripts/casper-bottom/23networking: Strip quotes from DNSDOMAIN as | ||
1653 | 324 | returned by ipconfig, and sanitize the domain entry to ensure the | ||
1654 | 325 | generated /etc/resolv.conf is formatted correctly (LP: #709364). | ||
1655 | 326 | |||
1656 | 327 | -- Colin Watson <cjwatson@ubuntu.com> Tue, 01 Feb 2011 11:05:13 +0000 | ||
1657 | 328 | |||
1658 | 329 | casper (1.254) natty; urgency=low | ||
1659 | 330 | |||
1660 | 331 | * More fixes to the USB update-initramfs shim (LP: #591207): | ||
1661 | 332 | - Make the shim a proper executable in | ||
1662 | 333 | /usr/share/casper/casper-update-initramfs and symlink to it if | ||
1663 | 334 | necessary at boot time, so that new versions of this shim are | ||
1664 | 335 | automatically installed when casper is upgraded. | ||
1665 | 336 | - $bootdir/initrd.img may exist when $bootdir/vmlinuz doesn't; for | ||
1666 | 337 | example, if we're running off a fresh live USB stick and the kernel | ||
1667 | 338 | hasn't yet been upgraded. | ||
1668 | 339 | |||
1669 | 340 | -- Colin Watson <cjwatson@ubuntu.com> Thu, 20 Jan 2011 14:18:59 +0000 | ||
1670 | 341 | |||
1671 | 342 | casper (1.253) natty; urgency=low | ||
1672 | 343 | |||
1673 | 344 | * Don't try to process the initramfs and kernel if the real update- | ||
1674 | 345 | initramfs hasn't generated anything (LP: #557023). | ||
1675 | 346 | |||
1676 | 347 | -- Evan Dandrea <ev@ubuntu.com> Wed, 05 Jan 2011 12:07:47 +0000 | ||
1677 | 348 | |||
1678 | 349 | casper (1.252) natty; urgency=low | ||
1679 | 350 | |||
1680 | 351 | * Cope with forthcoming console-setup changes: handle | ||
1681 | 352 | /etc/default/keyboard if present, and in that case preseed | ||
1682 | 353 | keyboard-configuration/* templates. | ||
1683 | 354 | |||
1684 | 355 | -- Colin Watson <cjwatson@ubuntu.com> Tue, 21 Dec 2010 16:44:54 +0000 | ||
1685 | 356 | |||
1686 | 357 | casper (1.251) natty; urgency=low | ||
1687 | 358 | |||
1688 | 359 | * scripts/casper-bottom/44pk_allow_ubuntu: Tweak the default PolicyKit | ||
1689 | 360 | policy to avoid dropping wireless connections when a user switches to | ||
1690 | 361 | another VT (LP: #656757) | ||
1691 | 362 | |||
1692 | 363 | -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Sat, 04 Dec 2010 13:11:23 +0000 | ||
1693 | 364 | |||
1694 | 365 | casper (1.250) natty; urgency=low | ||
1695 | 366 | |||
1696 | 367 | * Use LDLIBS rather than LDFLAGS for 'pkg-config --libs ply-boot-client', | ||
1697 | 368 | fixing link line ordering. | ||
1698 | 369 | |||
1699 | 370 | -- Colin Watson <cjwatson@ubuntu.com> Mon, 29 Nov 2010 13:28:17 +0000 | ||
1700 | 371 | |||
1701 | 372 | casper (1.249) natty; urgency=low | ||
1702 | 373 | |||
1703 | 374 | [ arky ] | ||
1704 | 375 | * Add universal access preferences taskbar icon in all accessibility | ||
1705 | 376 | profiles (LP: #621561). | ||
1706 | 377 | |||
1707 | 378 | [ Serge Hallyn ] | ||
1708 | 379 | * change scripts/casper-helpers:try_mount() to not panic when regular | ||
1709 | 380 | mounts fail. Instead, return an error code so the caller can decide. | ||
1710 | 381 | (LP: #624632) | ||
1711 | 382 | |||
1712 | 383 | [ Evan Broder ] | ||
1713 | 384 | * scripts/casper: Check for uuid= command line parameter in addition to | ||
1714 | 385 | /conf/uuid.conf file in initrd. (LP: #671786) | ||
1715 | 386 | |||
1716 | 387 | [ Colin Watson ] | ||
1717 | 388 | * Document new uuid= option in casper(7). | ||
1718 | 389 | |||
1719 | 390 | -- Colin Watson <cjwatson@ubuntu.com> Mon, 29 Nov 2010 12:49:36 +0000 | ||
1720 | 391 | |||
1721 | 392 | casper (1.248) maverick; urgency=low | ||
1722 | 393 | |||
1723 | 394 | * ubiquity-hooks/30accessibility: Create .local/share subdirectory structure | ||
1724 | 395 | before copying files. Also copy orca files to ~/.local/share, instead | ||
1725 | 396 | ~/. Thanks to Attila Hammer for the patch. (LP: #650846) | ||
1726 | 397 | |||
1727 | 398 | -- Luke Yelavich <themuso@ubuntu.com> Tue, 05 Oct 2010 15:35:35 +1100 | ||
1728 | 399 | |||
1729 | 400 | casper (1.247) maverick; urgency=low | ||
1730 | 401 | |||
1731 | 402 | * Check for the existance of a kubuntu-default-settings directory before | ||
1732 | 403 | running scripts/casper-bottom/48kubuntu_disable_restart_notifications | ||
1733 | 404 | |||
1734 | 405 | -- Jonathan Thomas <echidnaman@kubuntu.org> Mon, 04 Oct 2010 17:43:21 -0400 | ||
1735 | 406 | |||
1736 | 407 | casper (1.246) maverick; urgency=low | ||
1737 | 408 | |||
1738 | 409 | * Added scripts/casper-bottom/07remove_oem_config | ||
1739 | 410 | - Added new script to remove oem-config if installed on the image on ARM, | ||
1740 | 411 | as it should never be installed on a non-preinstalled image. This is | ||
1741 | 412 | necessary because we can't exclude oem-config on the seed on a | ||
1742 | 413 | per-subarchitecture basis | ||
1743 | 414 | * scripts/casper/47une_ubiquity | ||
1744 | 415 | - Cause gconf changes to be made to both the 2D & 3D UNE launchers so | ||
1745 | 416 | ubiquity properly shows up in favorites regardless of which launcher is | ||
1746 | 417 | used (LP: #643791) | ||
1747 | 418 | |||
1748 | 419 | -- Michael Casadevall <mcasadevall@ubuntu.com> Mon, 27 Sep 2010 17:52:50 -0400 | ||
1749 | 420 | |||
1750 | 421 | casper (1.245) maverick; urgency=low | ||
1751 | 422 | |||
1752 | 423 | * Add scripts/casper-bottom/49disable_kubuntu_restart_notify for a more | ||
1753 | 424 | surgical solution at disabling restart notifications on the Live CD | ||
1754 | 425 | * Don't remove the notificationhelper.desktop file in 34disable_kde_services | ||
1755 | 426 | |||
1756 | 427 | -- Jonathan Thomas <echidnaman@kubuntu.org> Tue, 28 Sep 2010 19:20:26 -0400 | ||
1757 | 428 | |||
1758 | 429 | casper (1.244) maverick; urgency=low | ||
1759 | 430 | |||
1760 | 431 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1761 | 432 | - Use orca's new settings location in ~/.local/share, as orca is now | ||
1762 | 433 | more XDG compliant | ||
1763 | 434 | |||
1764 | 435 | -- Luke Yelavich <themuso@ubuntu.com> Thu, 16 Sep 2010 09:38:21 +1000 | ||
1765 | 436 | |||
1766 | 437 | casper (1.243) maverick; urgency=low | ||
1767 | 438 | |||
1768 | 439 | * Backport from live-initramfs 1.154.6-1: | ||
1769 | 440 | - Adding patch from Thierry Walrant <debian.tgc@walrant.net> to allow | ||
1770 | 441 | setting a path for the persistence files through persistent-path boot | ||
1771 | 442 | parameter (Closes: #512661). | ||
1772 | 443 | * Follow symlinks when checking for dynamically linked files at reboot. | ||
1773 | 444 | |||
1774 | 445 | -- Colin Watson <cjwatson@ubuntu.com> Tue, 07 Sep 2010 10:53:32 +0100 | ||
1775 | 446 | |||
1776 | 447 | casper (1.242) maverick; urgency=low | ||
1777 | 448 | |||
1778 | 449 | * Update scripts/casper-bottom/34disable_kde_services to stop some new | ||
1779 | 450 | akonadi services | ||
1780 | 451 | |||
1781 | 452 | -- Jonathan Riddell <jriddell@ubuntu.com> Mon, 06 Sep 2010 14:20:54 +0100 | ||
1782 | 453 | |||
1783 | 454 | casper (1.241) maverick; urgency=low | ||
1784 | 455 | |||
1785 | 456 | [ Mathieu Trudel-Lapierre ] | ||
1786 | 457 | * Use configure_networking at do_netmount; it's at least more resilient | ||
1787 | 458 | than a simple ipconfig call since it retries, and it properly parses | ||
1788 | 459 | BOOTIF to know which devices to configure. (LP: #602273) | ||
1789 | 460 | |||
1790 | 461 | [ Colin Watson ] | ||
1791 | 462 | * Parse the machine-readable file written out by ipconfig rather than | ||
1792 | 463 | trying to parse its human-readable output. | ||
1793 | 464 | |||
1794 | 465 | -- Colin Watson <cjwatson@ubuntu.com> Fri, 20 Aug 2010 13:37:56 +0100 | ||
1795 | 466 | |||
1796 | 467 | casper (1.240) maverick; urgency=high | ||
1797 | 468 | |||
1798 | 469 | * scripts/casper | ||
1799 | 470 | - Added platform-sata_mv to is_nice_device() to allow Marvell | ||
1800 | 471 | Dove A0 and AVD1 to properly boot live media (LP: #618489) | ||
1801 | 472 | |||
1802 | 473 | -- Michael Casadevall <mcasadevall@ubuntu.com> Mon, 16 Aug 2010 19:36:56 +0800 | ||
1803 | 474 | |||
1804 | 475 | casper (1.239) maverick; urgency=low | ||
1805 | 476 | |||
1806 | 477 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
1807 | 478 | - Instead of mangling the main sudoers file, create a new file in | ||
1808 | 479 | /etc/sudoers.d and set permissions appropriately | ||
1809 | 480 | |||
1810 | 481 | -- Luke Yelavich <themuso@ubuntu.com> Wed, 11 Aug 2010 13:46:03 +1000 | ||
1811 | 482 | |||
1812 | 483 | casper (1.238) maverick; urgency=low | ||
1813 | 484 | |||
1814 | 485 | [ Alex Chiang ] | ||
1815 | 486 | * Disable ureadahead-other job as well as ureadahead (LP: #605695). | ||
1816 | 487 | |||
1817 | 488 | -- Colin Watson <cjwatson@ubuntu.com> Thu, 15 Jul 2010 11:49:36 +0100 | ||
1818 | 489 | |||
1819 | 490 | casper (1.237) maverick; urgency=low | ||
1820 | 491 | |||
1821 | 492 | [ Colin Watson ] | ||
1822 | 493 | * Add btrfs support. | ||
1823 | 494 | * Make ip=* command-line parsing more precise (thanks, Bill Nickless; | ||
1824 | 495 | LP: #586553). | ||
1825 | 496 | * Make the USB update-initramfs shim cope with vmlinuz and initrd.img | ||
1826 | 497 | being in /boot rather than / (LP: #591207). | ||
1827 | 498 | * Depend on file for /etc/init.d/casper (thanks, Alon Swartz; | ||
1828 | 499 | LP: #591213). | ||
1829 | 500 | * Conflict with live-initramfs, as they overlap and people can pick one or | ||
1830 | 501 | the other (LP: #453476). | ||
1831 | 502 | |||
1832 | 503 | [ Martin Pitt ] | ||
1833 | 504 | * debian/casper.init: Change shutdown splash message to refer to | ||
1834 | 505 | "installation media" instead of "disc"; a lot of installs happen | ||
1835 | 506 | from USB sticks these days. Thanks to Debbie Beliveau for the idea. | ||
1836 | 507 | |||
1837 | 508 | -- Colin Watson <cjwatson@ubuntu.com> Mon, 28 Jun 2010 16:53:17 +0100 | ||
1838 | 509 | |||
1839 | 510 | casper (1.236) lucid; urgency=low | ||
1840 | 511 | |||
1841 | 512 | * Check for LTS in the release name (LP: #558488). | ||
1842 | 513 | |||
1843 | 514 | -- Evan Dandrea <evand@ubuntu.com> Wed, 21 Apr 2010 11:12:32 +0100 | ||
1844 | 515 | |||
1845 | 516 | casper (1.235) lucid; urgency=low | ||
1846 | 517 | |||
1847 | 518 | * Unbreak early command from previous commit. | ||
1848 | 519 | |||
1849 | 520 | -- Mario Limonciello <Mario_Limonciello@Dell.com> Thu, 15 Apr 2010 02:54:15 -0500 | ||
1850 | 521 | |||
1851 | 522 | casper (1.234) lucid; urgency=low | ||
1852 | 523 | |||
1853 | 524 | * Only bring the network up while running preseed/early_command if | ||
1854 | 525 | preseed/allow-network=true. | ||
1855 | 526 | |||
1856 | 527 | -- Colin Watson <cjwatson@ubuntu.com> Wed, 14 Apr 2010 15:56:40 +0100 | ||
1857 | 528 | |||
1858 | 529 | casper (1.233) lucid; urgency=low | ||
1859 | 530 | |||
1860 | 531 | * Bring the network up while running preseed/early_command. | ||
1861 | 532 | * Fix use of debconf passthrough frontend; DEBCONF_READFD and | ||
1862 | 533 | DEBCONF_WRITEFD were backwards, and DEBIAN_HAS_FRONTEND and | ||
1863 | 534 | DEBCONF_REDIR needed to be unset or else confmodule scripts would end up | ||
1864 | 535 | trying to talk to closed file descriptors. | ||
1865 | 536 | * Run debconf-communicate with a read-only template database and separate | ||
1866 | 537 | config databases, and copy any changed values back to the master | ||
1867 | 538 | databases at the end. This allows us to use the noninteractive frontend | ||
1868 | 539 | rather than passthrough when running apt-get in preseed/early_command or | ||
1869 | 540 | dpkg to install driver updates, thereby ensuring that the template | ||
1870 | 541 | database is properly initialised (LP: #557011). | ||
1871 | 542 | |||
1872 | 543 | -- Colin Watson <cjwatson@ubuntu.com> Mon, 12 Apr 2010 23:41:09 +0100 | ||
1873 | 544 | |||
1874 | 545 | casper (1.232) lucid; urgency=low | ||
1875 | 546 | |||
1876 | 547 | * bump compcache size to 50% on live images for machines with less than | ||
1877 | 548 | 512MiB. This makes sure we don't hit OOM errors on systems with only | ||
1878 | 549 | 256MiB of RAM. | ||
1879 | 550 | |||
1880 | 551 | -- Oliver Grawert <ogra@ubuntu.com> Mon, 12 Apr 2010 08:10:06 +0200 | ||
1881 | 552 | |||
1882 | 553 | casper (1.231) lucid; urgency=low | ||
1883 | 554 | |||
1884 | 555 | [ Jonathan Riddell ] | ||
1885 | 556 | * Remove 37kubuntu_netbook_installer_link, now done with a patch in | ||
1886 | 557 | kdebase-workspace | ||
1887 | 558 | |||
1888 | 559 | [ Colin Watson ] | ||
1889 | 560 | * If copying live media to RAM or disk, explicitly copy .disk, since * | ||
1890 | 561 | won't expand to include it (LP: #526305). | ||
1891 | 562 | * Cache /bin/plymouth and /sbin/usplash_write before ejecting the CD, in | ||
1892 | 563 | the hope that that helps with I/O errors on reboot (see LP #539027). | ||
1893 | 564 | |||
1894 | 565 | [ Luke Yelavich ] | ||
1895 | 566 | * ubiquity-hooks/30accessibility: Copy the orca settings directory to the | ||
1896 | 567 | gdm home directory, to allow for preferred orca settings to be used in | ||
1897 | 568 | gdm (LP: #551515). | ||
1898 | 569 | |||
1899 | 570 | -- Luke Yelavich <themuso@ubuntu.com> Fri, 09 Apr 2010 14:00:51 +1000 | ||
1900 | 571 | |||
1901 | 572 | casper (1.230) lucid; urgency=low | ||
1902 | 573 | |||
1903 | 574 | * Don't save the hardware clock on live CD reboot; we used to do this in | ||
1904 | 575 | the sysvinit world, but it regressed when we switched to Upstart | ||
1905 | 576 | (thanks, Norm Pierce; LP: #436535). | ||
1906 | 577 | * When running update-initramfs on writable media, update initrd.lz rather | ||
1907 | 578 | than initrd.gz if it's present, and make the update process a bit safer | ||
1908 | 579 | while we're there (LP: #489736). | ||
1909 | 580 | * Handle toram and todisk=DEVICE options on command line (LP: #526305). | ||
1910 | 581 | * Policy version 3.8.4: no changes required. | ||
1911 | 582 | * Convert to source format 3.0 (native). | ||
1912 | 583 | |||
1913 | 584 | -- Colin Watson <cjwatson@ubuntu.com> Tue, 30 Mar 2010 11:41:24 +0100 | ||
1914 | 585 | |||
1915 | 586 | casper (1.229) lucid; urgency=low | ||
1916 | 587 | |||
1917 | 588 | [ Jonathan Riddell ] | ||
1918 | 589 | * Update scripts/casper-bottom/34disable_kde_services for lucid | ||
1919 | 590 | |||
1920 | 591 | [ Evan Dandrea ] | ||
1921 | 592 | * Don't let apt try to auto-detect the CD-ROM device using udev. We | ||
1922 | 593 | already know what it is, and using udev to find it again wont work | ||
1923 | 594 | for USB disks. | ||
1924 | 595 | |||
1925 | 596 | -- Evan Dandrea <evand@ubuntu.com> Tue, 23 Mar 2010 11:42:00 +0000 | ||
1926 | 597 | |||
1927 | 598 | casper (1.228) lucid; urgency=low | ||
1928 | 599 | |||
1929 | 600 | * Update for the new libplymouth2. | ||
1930 | 601 | |||
1931 | 602 | -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 12 Mar 2010 18:37:02 -0800 | ||
1932 | 603 | |||
1933 | 604 | casper (1.227) lucid; urgency=low | ||
1934 | 605 | |||
1935 | 606 | * casper-md5check: port from usplash to plymouth. LP: #500198 | ||
1936 | 607 | * fix up our reliance on usplash, /dev/console elsewhere. LP: #506418. | ||
1937 | 608 | |||
1938 | 609 | -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 12 Mar 2010 01:12:28 -0800 | ||
1939 | 610 | |||
1940 | 611 | casper (1.226) lucid; urgency=low | ||
1941 | 612 | |||
1942 | 613 | [ Colin Watson ] | ||
1943 | 614 | * Stop using removed nfsro option for NFS/unionfs (thanks, Bernhard | ||
1944 | 615 | Seibold; LP: #460781). | ||
1945 | 616 | |||
1946 | 617 | [ Jonathan Riddell ] | ||
1947 | 618 | * Remove scripts/casper-bottom/48enable_kubuntu_netbook and ubiquity- | ||
1948 | 619 | hooks/48enable_kubuntu_netbook now enabled in kubuntu-netbook- | ||
1949 | 620 | default-settings | ||
1950 | 621 | |||
1951 | 622 | -- Jonathan Riddell <jriddell@ubuntu.com> Wed, 10 Mar 2010 22:23:04 +0000 | ||
1952 | 623 | |||
1953 | 624 | casper (1.225) lucid; urgency=low | ||
1954 | 625 | |||
1955 | 626 | * Add ubiquity-hooks/49kubuntu_gnome_icon_cache to recreate the Gnome | ||
1956 | 627 | icon cache on Kubuntu CDs, removed by livecd-rootfs | ||
1957 | 628 | |||
1958 | 629 | -- Jonathan Riddell <jriddell@ubuntu.com> Mon, 08 Mar 2010 11:47:01 +0000 | ||
1959 | 630 | |||
1960 | 631 | casper (1.224) lucid; urgency=low | ||
1961 | 632 | |||
1962 | 633 | * Remove ubiquity-hooks/35copy_wallpaper_cache as now implement it in | ||
1963 | 634 | ubiquity itself (LP: #530024) | ||
1964 | 635 | |||
1965 | 636 | -- Didier Roche <didrocks@ubuntu.com> Mon, 01 Mar 2010 19:41:45 +0100 | ||
1966 | 637 | |||
1967 | 638 | casper (1.223) lucid; urgency=low | ||
1968 | 639 | |||
1969 | 640 | * Bind-mount /dev, /proc, and /sys into /root while running apt-cdrom. | ||
1970 | 641 | * Copy /lib/udev/rules.d/60-cdrom_id.rules into the initramfs to go with | ||
1971 | 642 | /lib/udev/cdrom_id, so that apt-cdrom will be able to find ID_CDROM=1 | ||
1972 | 643 | entries when we run it. This should stop update-notifier from | ||
1973 | 644 | repeatedly popping up during the live session. | ||
1974 | 645 | |||
1975 | 646 | -- Colin Watson <cjwatson@ubuntu.com> Tue, 23 Feb 2010 01:35:30 +0000 | ||
1976 | 647 | |||
1977 | 648 | casper (1.222) lucid; urgency=low | ||
1978 | 649 | |||
1979 | 650 | * scripts/casper-bottom/47une_ubiquity: | ||
1980 | 651 | - get back ubiquity favorite icon in UNE live (LP: #524381) | ||
1981 | 652 | - rename the script from 47unr_ubiquity to 47une_ubiquity as well | ||
1982 | 653 | as "UNR" mention | ||
1983 | 654 | |||
1984 | 655 | -- Didier Roche <didrocks@ubuntu.com> Mon, 22 Feb 2010 14:01:25 +0100 | ||
1985 | 656 | |||
1986 | 657 | casper (1.221) lucid; urgency=low | ||
1987 | 658 | |||
1988 | 659 | * Remove the rest of the mythbuntu delta from 10adduser. It will be | ||
1989 | 660 | maintained in the mythbuntu-live-autostart package instead so that | ||
1990 | 661 | users from ~mythbuntu-dev can administer it. | ||
1991 | 662 | |||
1992 | 663 | -- Mario Limonciello <superm1@ubuntu.com> Sun, 21 Feb 2010 20:22:00 -0600 | ||
1993 | 664 | |||
1994 | 665 | casper (1.220) lucid; urgency=low | ||
1995 | 666 | |||
1996 | 667 | * scripts/casper: calculate memory without "head" utility, thanks to | ||
1997 | 668 | Petar Bogdanovic (LP: #25496). | ||
1998 | 669 | |||
1999 | 670 | -- Kees Cook <kees@ubuntu.com> Fri, 19 Feb 2010 14:04:18 -0800 | ||
2000 | 671 | |||
2001 | 672 | casper (1.219) lucid; urgency=low | ||
2002 | 673 | |||
2003 | 674 | [ Mario Limonciello ] | ||
2004 | 675 | * Disable casper-reconfigure from 22gnome_panel_data. It doesn't (appear) to | ||
2005 | 676 | serve a functional purpose as the postinst does nothing different for laptops. | ||
2006 | 677 | |||
2007 | 678 | [ Didier Roche ] | ||
2008 | 679 | * add 35copy_wallpaper_cache to copy the wallpaper cache created at boot time | ||
2009 | 680 | to the main user's directory. First boot will take it into account in | ||
2010 | 681 | ureadahead profiling | ||
2011 | 682 | |||
2012 | 683 | -- Didier Roche <didrocks@ubuntu.com> Wed, 17 Feb 2010 19:14:53 +0100 | ||
2013 | 684 | |||
2014 | 685 | casper (1.218) lucid; urgency=low | ||
2015 | 686 | |||
2016 | 687 | * Allow dpkg and apt-get to be installed from within commands that operate | ||
2017 | 688 | in the chroot via early_command or driver updates. (LP: #521218) | ||
2018 | 689 | |||
2019 | 690 | -- Mario Limonciello <Mario_Limonciello@Dell.com> Tue, 16 Feb 2010 13:38:48 -0600 | ||
2020 | 691 | |||
2021 | 692 | casper (1.217) lucid; urgency=low | ||
2022 | 693 | |||
2023 | 694 | [ Luke Yelavich ] | ||
2024 | 695 | * ubiquity-hooks/30accessibility: Enable accessible login for the blindness | ||
2025 | 696 | and braile accessibility profiles. | ||
2026 | 697 | |||
2027 | 698 | [ Colin Watson ] | ||
2028 | 699 | * Use egrep rather than 'grep -E' (LP: #512386). | ||
2029 | 700 | |||
2030 | 701 | [ Julien Lavergne ] | ||
2031 | 702 | * 15autologin: Add support for LXDM autologin (LP: #511976). | ||
2032 | 703 | |||
2033 | 704 | [ Evan Dandrea ] | ||
2034 | 705 | * Properly shut down debconf-communicate so that its database gets | ||
2035 | 706 | written (LP: #518272). | ||
2036 | 707 | |||
2037 | 708 | -- Evan Dandrea <evand@ubuntu.com> Thu, 11 Feb 2010 08:25:53 +0000 | ||
2038 | 709 | |||
2039 | 710 | casper (1.216) lucid; urgency=low | ||
2040 | 711 | |||
2041 | 712 | [ Luke Yelavich ] | ||
2042 | 713 | * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility: | ||
2043 | 714 | - Remove code to disable pulseaudio, as it is no longer needed, and | ||
2044 | 715 | the supporting code in the pulseaudio package was removed a long time | ||
2045 | 716 | ago. | ||
2046 | 717 | - Set the default empathy theme to classic for blindness and braille | ||
2047 | 718 | accessibility profiles. | ||
2048 | 719 | |||
2049 | 720 | [ Jamie Bennett ] | ||
2050 | 721 | * Speed up work around debconf-communicate. Replace several calls to | ||
2051 | 722 | debconf-communicate with one persistent invocation followed by | ||
2052 | 723 | confmodule calls. | ||
2053 | 724 | * Disable guest account by rm'ing rather than waiting for dpkg to | ||
2054 | 725 | remove it. | ||
2055 | 726 | |||
2056 | 727 | -- Colin Watson <cjwatson@ubuntu.com> Wed, 03 Feb 2010 16:41:57 -0800 | ||
2057 | 728 | |||
2058 | 729 | casper (1.215) lucid; urgency=low | ||
2059 | 2 | 730 | ||
2060 | 3 | [ Mario Limonciello ] | 731 | [ Mario Limonciello ] |
2061 | 4 | * Support multiple preseed file/urlarguments on the kernel commandline | 732 | * Support multiple preseed file/urlarguments on the kernel commandline |
2062 | @@ -18,6 +746,46 @@ | |||
2063 | 18 | 746 | ||
2064 | 19 | -- Jonathan Riddell <jriddell@ubuntu.com> Wed, 27 Jan 2010 13:55:42 +0000 | 747 | -- Jonathan Riddell <jriddell@ubuntu.com> Wed, 27 Jan 2010 13:55:42 +0000 |
2065 | 20 | 748 | ||
2066 | 749 | casper (1.214) lucid; urgency=low | ||
2067 | 750 | |||
2068 | 751 | * 15autologin: simplify the code with escape character evaluation | ||
2069 | 752 | (LP: #505140) | ||
2070 | 753 | |||
2071 | 754 | -- Didier Roche <didrocks@ubuntu.com> Tue, 12 Jan 2010 08:57:05 +0100 | ||
2072 | 755 | |||
2073 | 756 | casper (1.213) lucid; urgency=low | ||
2074 | 757 | |||
2075 | 758 | * printf does not evaluate escape characters in the argument string. | ||
2076 | 759 | |||
2077 | 760 | -- Evan Dandrea <evand@ubuntu.com> Mon, 11 Jan 2010 11:02:12 +0000 | ||
2078 | 761 | |||
2079 | 762 | casper (1.212) lucid; urgency=low | ||
2080 | 763 | |||
2081 | 764 | [ Martin Pitt ] | ||
2082 | 765 | * debian/control: Add ${misc:Depends}. | ||
2083 | 766 | * debian/control: Bump Standards-Version to 3.8.3 (no changes necessary). | ||
2084 | 767 | |||
2085 | 768 | [ Colin Watson ] | ||
2086 | 769 | * 15autologin: Use printf rather than echo -e, since its behaviour is | ||
2087 | 770 | portable across shells. | ||
2088 | 771 | |||
2089 | 772 | [ Evan Dandrea ] | ||
2090 | 773 | * Remove scripts/casper-bottom/42disable_apparmor. Apparmor | ||
2091 | 774 | 2.3.1+bzr1312-0ubuntu3 and ifupdown 0.6.8ubuntu26 now no-op when | ||
2092 | 775 | they detect the live CD environment. | ||
2093 | 776 | |||
2094 | 777 | -- Evan Dandrea <evand@ubuntu.com> Fri, 08 Jan 2010 20:31:26 +0000 | ||
2095 | 778 | |||
2096 | 779 | casper (1.211) lucid; urgency=low | ||
2097 | 780 | |||
2098 | 781 | * Readd scripts/casper-bottom/15autologin changes: derivatives have | ||
2099 | 782 | now a custom.conf file and still need autologin in live version. | ||
2100 | 783 | Merge with my previous fix proposed for sponsoring one week ago: | ||
2101 | 784 | use echo -e to enable \n interpretation (/bin/sh is busybox ash | ||
2102 | 785 | which behavior differs from vanilla ash interpretor) (LP: #500786) | ||
2103 | 786 | |||
2104 | 787 | -- Didier Roche <didrocks@ubuntu.com> Tue, 05 Jan 2010 20:05:26 +0100 | ||
2105 | 788 | |||
2106 | 21 | casper (1.210) lucid; urgency=low | 789 | casper (1.210) lucid; urgency=low |
2107 | 22 | 790 | ||
2108 | 23 | [ Scott James Remnant ] | 791 | [ Scott James Remnant ] |
2109 | 24 | 792 | ||
2110 | === modified file 'debian/control' | |||
2111 | --- debian/control 2010-01-20 23:35:11 +0000 | |||
2112 | +++ debian/control 2011-10-06 10:04:28 +0000 | |||
2113 | @@ -2,23 +2,23 @@ | |||
2114 | 2 | Section: misc | 2 | Section: misc |
2115 | 3 | Priority: optional | 3 | Priority: optional |
2116 | 4 | Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
2120 | 5 | Build-Depends: debhelper (>= 7.0.50~), lsb-release | 5 | Build-Depends: debhelper (>= 7.0.50~), lsb-release, libplymouth-dev (>= 0.8.0~-13), pkg-config |
2121 | 6 | Standards-Version: 3.6.1 | 6 | Standards-Version: 3.8.4 |
2122 | 7 | Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/casper/trunk/ | 7 | Vcs-Bzr: lp:ubuntu/casper |
2123 | 8 | 8 | ||
2124 | 9 | Package: casper | 9 | Package: casper |
2125 | 10 | Architecture: any | 10 | Architecture: any |
2126 | 11 | Section: misc | 11 | Section: misc |
2127 | 12 | Priority: extra | 12 | Priority: extra |
2130 | 13 | Depends: ${shlibs:Depends}, initramfs-tools (>= 0.92bubuntu55), busybox-initramfs (>= 1:1.1.3-4ubuntu3), dmsetup, user-setup, sudo, eject, uuid-runtime, localechooser-data (>= 2.03ubuntu1), util-linux (>= 2.15-1) | 13 | Depends: ${shlibs:Depends}, ${misc:Depends}, initramfs-tools (>= 0.92bubuntu55), busybox-initramfs (>= 1:1.1.3-4ubuntu3), dmsetup, user-setup, sudo, eject, uuid-runtime, localechooser-data (>= 2.03ubuntu1), util-linux (>= 2.15-1), file, lzma |
2131 | 14 | Conflicts: usplash (<< 0.4-43) | 14 | Conflicts: usplash (<< 0.4-43), live-initramfs |
2132 | 15 | Breaks: genext2fs (<< 1.4.1) | 15 | Breaks: genext2fs (<< 1.4.1) |
2133 | 16 | Tag: admin::boot, admin::filesystem, implemented-in::shell, protocol::smb, role::plugin, scope::utility, special::completely-tagged, works-with-format::iso9660 | 16 | Tag: admin::boot, admin::filesystem, implemented-in::shell, protocol::smb, role::plugin, scope::utility, special::completely-tagged, works-with-format::iso9660 |
2134 | 17 | Description: Run a "live" preinstalled system from read-only media | 17 | Description: Run a "live" preinstalled system from read-only media |
2135 | 18 | 18 | ||
2136 | 19 | Package: ubiquity-casper | 19 | Package: ubiquity-casper |
2137 | 20 | Architecture: all | 20 | Architecture: all |
2139 | 21 | Depends: laptop-detect, sudo | 21 | Depends: laptop-detect, sudo, ${misc:Depends} |
2140 | 22 | Conflicts: espresso-casper | 22 | Conflicts: espresso-casper |
2141 | 23 | Replaces: espresso-casper | 23 | Replaces: espresso-casper |
2142 | 24 | Enhances: ubiquity | 24 | Enhances: ubiquity |
2143 | 25 | 25 | ||
2144 | === modified file 'debian/copyright' | |||
2145 | --- debian/copyright 2009-01-13 18:56:31 +0000 | |||
2146 | +++ debian/copyright 2011-10-06 10:04:28 +0000 | |||
2147 | @@ -28,10 +28,20 @@ | |||
2148 | 28 | 3. This notice may not be removed or altered from any source | 28 | 3. This notice may not be removed or altered from any source |
2149 | 29 | distribution. | 29 | distribution. |
2150 | 30 | 30 | ||
2151 | 31 | License (bin/casper-set-selections): | ||
2152 | 32 | |||
2153 | 33 | The Debian installer preseeder is copyright 2004 by Joey Hess | ||
2154 | 34 | <joeyh@debian.org> and others. | ||
2155 | 35 | |||
2156 | 36 | This program is free software; you can redistribute it and/or modify | ||
2157 | 37 | it under the terms of the GNU General Public License as published by | ||
2158 | 38 | the Free Software Foundation; either version 2 of the License, or | ||
2159 | 39 | (at your option) any later version. | ||
2160 | 40 | |||
2161 | 31 | License (everything else): | 41 | License (everything else): |
2162 | 32 | 42 | ||
2163 | 33 | Copyright (C) 2006 Marco Amadori <marco.amadori@gmail.com> | 43 | Copyright (C) 2006 Marco Amadori <marco.amadori@gmail.com> |
2165 | 34 | Copyright (C) 2005-2008 Canonical Ltd. <http://www.canonical.com/> | 44 | Copyright (C) 2005-2011 Canonical Ltd. <http://www.canonical.com/> |
2166 | 35 | Copyright (C) 2008 Dell Inc. | 45 | Copyright (C) 2008 Dell Inc. |
2167 | 36 | 46 | ||
2168 | 37 | This program is free software; you can redistribute it and/or modify | 47 | This program is free software; you can redistribute it and/or modify |
2169 | 38 | 48 | ||
2170 | === modified file 'debian/manpage/casper.7' | |||
2171 | --- debian/manpage/casper.7 2009-06-02 13:57:02 +0000 | |||
2172 | +++ debian/manpage/casper.7 2011-10-06 10:04:28 +0000 | |||
2173 | @@ -51,6 +51,9 @@ | |||
2174 | 51 | .B nopersistent | 51 | .B nopersistent |
2175 | 52 | disables the above mentioned "persistent" feature, useful if the bootloader (like syslinux) has been installed with persistent enabled. | 52 | disables the above mentioned "persistent" feature, useful if the bootloader (like syslinux) has been installed with persistent enabled. |
2176 | 53 | .TP | 53 | .TP |
2177 | 54 | .BI "persistent-path=" PATH | ||
2178 | 55 | Casper will look for persistency files in the root directory of a partition. With this parameter, the path can be configured so that you can have multiple directories on the same partition to store persistency files. | ||
2179 | 56 | .TP | ||
2180 | 54 | .B "showmounts" | 57 | .B "showmounts" |
2181 | 55 | This parameter will make casper to show on "/" the ro filesystems (mostly compressed) on /casper. This is not enabled by default because could lead to problems by applications like "mono" which store binary paths on installation. | 58 | This parameter will make casper to show on "/" the ro filesystems (mostly compressed) on /casper. This is not enabled by default because could lead to problems by applications like "mono" which store binary paths on installation. |
2182 | 56 | .TP | 59 | .TP |
2183 | @@ -66,9 +69,18 @@ | |||
2184 | 66 | .BI "{preseed/file|file}=" FILE | 69 | .BI "{preseed/file|file}=" FILE |
2185 | 67 | A path to a file present on the rootfs could be used to preseed debconf database. | 70 | A path to a file present on the rootfs could be used to preseed debconf database. |
2186 | 68 | .TP | 71 | .TP |
2187 | 72 | .B preseed/allow-network=true | ||
2188 | 73 | Bring up the network while running | ||
2189 | 74 | .BR preseed/early_command . | ||
2190 | 75 | .TP | ||
2191 | 69 | .BI "package/question=" VALUE | 76 | .BI "package/question=" VALUE |
2192 | 70 | All debian installed packages could be preseeded from command-line that way, beware of blanks spaces, they will interfere with parsing, use a preseed file in this case. | 77 | All debian installed packages could be preseeded from command-line that way, beware of blanks spaces, they will interfere with parsing, use a preseed file in this case. |
2193 | 71 | .TP | 78 | .TP |
2194 | 79 | .BI "uuid=" UUID | ||
2195 | 80 | Check that the discovered medium matches | ||
2196 | 81 | .I UUID | ||
2197 | 82 | rather than the default UUID embedded in the initramfs. | ||
2198 | 83 | .TP | ||
2199 | 72 | .BI ignore_uuid | 84 | .BI ignore_uuid |
2200 | 73 | Do not check that any UUID embedded in the initramfs matches the discovered medium. | 85 | Do not check that any UUID embedded in the initramfs matches the discovered medium. |
2201 | 74 | .B casper | 86 | .B casper |
2202 | 75 | 87 | ||
2203 | === added directory 'debian/source' | |||
2204 | === added file 'debian/source/format' | |||
2205 | --- debian/source/format 1970-01-01 00:00:00 +0000 | |||
2206 | +++ debian/source/format 2011-10-06 10:04:28 +0000 | |||
2207 | @@ -0,0 +1,1 @@ | |||
2208 | 1 | 3.0 (native) | ||
2209 | 0 | 2 | ||
2210 | === modified file 'hooks/casper' | |||
2211 | --- hooks/casper 2009-05-23 22:30:56 +0000 | |||
2212 | +++ hooks/casper 2011-10-06 10:04:28 +0000 | |||
2213 | @@ -20,6 +20,7 @@ | |||
2214 | 20 | 20 | ||
2215 | 21 | manual_add_modules unionfs | 21 | manual_add_modules unionfs |
2216 | 22 | manual_add_modules aufs | 22 | manual_add_modules aufs |
2217 | 23 | manual_add_modules overlayfs | ||
2218 | 23 | 24 | ||
2219 | 24 | # unionfs-fuse, if available | 25 | # unionfs-fuse, if available |
2220 | 25 | if [ -x /usr/bin/unionfs-fuse ]; then | 26 | if [ -x /usr/bin/unionfs-fuse ]; then |
2221 | @@ -33,8 +34,10 @@ | |||
2222 | 33 | mkdir -p ${DESTDIR}/lib/casper | 34 | mkdir -p ${DESTDIR}/lib/casper |
2223 | 34 | copy_exec /usr/share/casper/casper-reconfigure /bin | 35 | copy_exec /usr/share/casper/casper-reconfigure /bin |
2224 | 35 | copy_exec /usr/share/casper/casper-preseed /bin | 36 | copy_exec /usr/share/casper/casper-preseed /bin |
2225 | 37 | copy_exec /usr/share/casper/casper-set-selections /bin | ||
2226 | 36 | 38 | ||
2228 | 37 | mkdir -p ${DESTDIR}/lib/udev | 39 | mkdir -p ${DESTDIR}/lib/udev/rules.d |
2229 | 40 | cp -p /lib/udev/rules.d/60-cdrom_id.rules ${DESTDIR}/lib/udev/rules.d/ | ||
2230 | 38 | copy_exec /lib/udev/cdrom_id /lib/udev | 41 | copy_exec /lib/udev/cdrom_id /lib/udev |
2231 | 39 | copy_exec /lib/udev/path_id /lib/udev | 42 | copy_exec /lib/udev/path_id /lib/udev |
2232 | 40 | copy_exec /usr/bin/eject /bin | 43 | copy_exec /usr/bin/eject /bin |
2233 | @@ -55,6 +58,7 @@ | |||
2234 | 55 | manual_add_modules vfat | 58 | manual_add_modules vfat |
2235 | 56 | manual_add_modules ext3 | 59 | manual_add_modules ext3 |
2236 | 57 | manual_add_modules ext4 | 60 | manual_add_modules ext4 |
2237 | 61 | manual_add_modules btrfs | ||
2238 | 58 | # needed for vfat. :-/ | 62 | # needed for vfat. :-/ |
2239 | 59 | manual_add_modules nls_cp437 | 63 | manual_add_modules nls_cp437 |
2240 | 60 | manual_add_modules nls_utf8 | 64 | manual_add_modules nls_utf8 |
2241 | 61 | 65 | ||
2242 | === modified file 'scripts/casper' | |||
2243 | --- scripts/casper 2009-10-06 12:07:52 +0000 | |||
2244 | +++ scripts/casper 2011-10-06 10:04:28 +0000 | |||
2245 | @@ -6,6 +6,7 @@ | |||
2246 | 6 | 6 | ||
2247 | 7 | mountpoint=/cdrom | 7 | mountpoint=/cdrom |
2248 | 8 | LIVE_MEDIA_PATH=casper | 8 | LIVE_MEDIA_PATH=casper |
2249 | 9 | [ -f /conf/uuid.conf ] && UUID="$(cat /conf/uuid.conf)" | ||
2250 | 9 | 10 | ||
2251 | 10 | root_persistence="casper-rw" | 11 | root_persistence="casper-rw" |
2252 | 11 | home_persistence="home-rw" | 12 | home_persistence="home-rw" |
2253 | @@ -38,24 +39,32 @@ | |||
2254 | 38 | export PERSISTENT="Yes" ;; | 39 | export PERSISTENT="Yes" ;; |
2255 | 39 | nopersistent) | 40 | nopersistent) |
2256 | 40 | export PERSISTENT="" ;; | 41 | export PERSISTENT="" ;; |
2257 | 42 | persistent-path=*) | ||
2258 | 43 | export PERSISTENT_PATH="${x#persistent-path=}" ;; | ||
2259 | 41 | union=*) | 44 | union=*) |
2260 | 42 | export UNIONFS="${x#union=}";; | 45 | export UNIONFS="${x#union=}";; |
2262 | 43 | ip*) | 46 | ip=*) |
2263 | 44 | STATICIP=${x#ip=} | 47 | STATICIP=${x#ip=} |
2264 | 45 | if [ "${STATICIP}" = "" ]; then | 48 | if [ "${STATICIP}" = "" ]; then |
2265 | 46 | STATICIP="frommedia" | 49 | STATICIP="frommedia" |
2266 | 47 | fi | 50 | fi |
2267 | 48 | export STATICIP ;; | 51 | export STATICIP ;; |
2268 | 52 | uuid=*) | ||
2269 | 53 | UUID=${x#uuid=} ;; | ||
2270 | 49 | ignore_uuid) | 54 | ignore_uuid) |
2272 | 50 | IGNORE_UUID="Yes" ;; | 55 | UUID="" ;; |
2273 | 51 | live-media-path=*) | 56 | live-media-path=*) |
2274 | 52 | LIVE_MEDIA_PATH="${x#live-media-path=}" | 57 | LIVE_MEDIA_PATH="${x#live-media-path=}" |
2275 | 53 | export LIVE_MEDIA_PATH | 58 | export LIVE_MEDIA_PATH |
2276 | 54 | echo "export LIVE_MEDIA_PATH=\"$LIVE_MEDIA_PATH\"" >> /etc/casper.conf ;; | 59 | echo "export LIVE_MEDIA_PATH=\"$LIVE_MEDIA_PATH\"" >> /etc/casper.conf ;; |
2277 | 60 | toram) | ||
2278 | 61 | export TORAM="Yes" ;; | ||
2279 | 62 | todisk=*) | ||
2280 | 63 | export TODISK="${x#todisk=}" ;; | ||
2281 | 55 | esac | 64 | esac |
2282 | 56 | done | 65 | done |
2283 | 57 | if [ "${UNIONFS}" = "" ]; then | 66 | if [ "${UNIONFS}" = "" ]; then |
2285 | 58 | export UNIONFS="aufs" | 67 | export UNIONFS="DEFAULT" |
2286 | 59 | fi | 68 | fi |
2287 | 60 | } | 69 | } |
2288 | 61 | 70 | ||
2289 | @@ -72,15 +81,14 @@ | |||
2290 | 72 | } | 81 | } |
2291 | 73 | 82 | ||
2292 | 74 | matches_uuid() { | 83 | matches_uuid() { |
2294 | 75 | if [ "$IGNORE_UUID" ] || [ ! -e /conf/uuid.conf ]; then | 84 | if [ -z "$UUID" ]; then |
2295 | 76 | return 0 | 85 | return 0 |
2296 | 77 | fi | 86 | fi |
2297 | 78 | path="$1" | 87 | path="$1" |
2298 | 79 | uuid="$(cat /conf/uuid.conf)" | ||
2299 | 80 | for try_uuid_file in "$path/.disk/casper-uuid"*; do | 88 | for try_uuid_file in "$path/.disk/casper-uuid"*; do |
2300 | 81 | [ -e "$try_uuid_file" ] || continue | 89 | [ -e "$try_uuid_file" ] || continue |
2301 | 82 | try_uuid="$(cat "$try_uuid_file")" | 90 | try_uuid="$(cat "$try_uuid_file")" |
2303 | 83 | if [ "$uuid" = "$try_uuid" ]; then | 91 | if [ "$UUID" = "$try_uuid" ]; then |
2304 | 84 | return 0 | 92 | return 0 |
2305 | 85 | fi | 93 | fi |
2306 | 86 | done | 94 | done |
2307 | @@ -125,7 +133,7 @@ | |||
2308 | 125 | 133 | ||
2309 | 126 | is_nice_device() { | 134 | is_nice_device() { |
2310 | 127 | sysfs_path="${1#/sys}" | 135 | sysfs_path="${1#/sys}" |
2312 | 128 | if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb)|platform-orion-ehci|platform-mmc|platform-mxsdhci)"; then | 136 | if /lib/udev/path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)"; then |
2313 | 129 | return 0 | 137 | return 0 |
2314 | 130 | fi | 138 | fi |
2315 | 131 | if echo ${sysfs_path} | grep -q "^/block/dm-"; then | 139 | if echo ${sysfs_path} | grep -q "^/block/dm-"; then |
2316 | @@ -143,7 +151,7 @@ | |||
2317 | 143 | 151 | ||
2318 | 144 | if [ "${copytodev}" = "ram" ]; then | 152 | if [ "${copytodev}" = "ram" ]; then |
2319 | 145 | # copying to ram: | 153 | # copying to ram: |
2321 | 146 | freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ) ) | 154 | freespace=$(awk '/^MemFree:/{f=$2} /^Cached:/{c=$2} END{print f+c}' /proc/meminfo) |
2322 | 147 | mount_options="-o size=${size}k" | 155 | mount_options="-o size=${size}k" |
2323 | 148 | free_string="memory" | 156 | free_string="memory" |
2324 | 149 | fstype="tmpfs" | 157 | fstype="tmpfs" |
2325 | @@ -169,7 +177,10 @@ | |||
2326 | 169 | mkdir "${copyto}" | 177 | mkdir "${copyto}" |
2327 | 170 | echo "mount -t ${fstype} ${mount_options} ${dev} ${copyto}" | 178 | echo "mount -t ${fstype} ${mount_options} ${dev} ${copyto}" |
2328 | 171 | mount -t "${fstype}" ${mount_options} "${dev}" "${copyto}" | 179 | mount -t "${fstype}" ${mount_options} "${dev}" "${copyto}" |
2330 | 172 | cp -a ${copyfrom}/* ${copyto} # "cp -a" from busybox also copies hidden files | 180 | cp -a ${copyfrom}/* ${copyto} |
2331 | 181 | if [ -e ${copyfrom}/.disk ]; then | ||
2332 | 182 | cp -a ${copyfrom}/.disk ${copyto} | ||
2333 | 183 | fi | ||
2334 | 173 | umount ${copyfrom} | 184 | umount ${copyfrom} |
2335 | 174 | mount -r -o move ${copyto} ${copyfrom} | 185 | mount -r -o move ${copyto} ${copyfrom} |
2336 | 175 | rmdir ${copyto} | 186 | rmdir ${copyto} |
2337 | @@ -184,7 +195,8 @@ | |||
2338 | 184 | /sbin/udevadm trigger | 195 | /sbin/udevadm trigger |
2339 | 185 | /sbin/udevadm settle | 196 | /sbin/udevadm settle |
2340 | 186 | 197 | ||
2342 | 187 | ipconfig ${DEVICE} /tmp/net-${DEVICE}.conf | tee /netboot.config | 198 | configure_networking |
2343 | 199 | export DEVICE | ||
2344 | 188 | 200 | ||
2345 | 189 | if [ "${NFSROOT}" = "auto" ]; then | 201 | if [ "${NFSROOT}" = "auto" ]; then |
2346 | 190 | NFSROOT=${ROOTSERVER}:${ROOTPATH} | 202 | NFSROOT=${ROOTSERVER}:${ROOTPATH} |
2347 | @@ -255,7 +267,7 @@ | |||
2348 | 255 | todev=$(cat /proc/mounts | grep -s " $(base_path ${todir}) " | awk '{print $1}' ) | 267 | todev=$(cat /proc/mounts | grep -s " $(base_path ${todir}) " | awk '{print $1}' ) |
2349 | 256 | freespace=$(df -k | grep -s ${todev} | awk '{print $4}') | 268 | freespace=$(df -k | grep -s ${todev} | awk '{print $4}') |
2350 | 257 | else | 269 | else |
2352 | 258 | freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - )) | 270 | freespace=$(awk '/^MemFree:/{f=$2} /^Cached:/{c=$2} END{print f+c}' /proc/meminfo) |
2353 | 259 | fi | 271 | fi |
2354 | 260 | 272 | ||
2355 | 261 | tomount="/mnt/tmpsnap" | 273 | tomount="/mnt/tmpsnap" |
2356 | @@ -355,15 +367,23 @@ | |||
2357 | 355 | image_directory="$1" | 367 | image_directory="$1" |
2358 | 356 | rootmnt="$2" | 368 | rootmnt="$2" |
2359 | 357 | 369 | ||
2369 | 358 | case ${UNIONFS} in | 370 | if [ "${UNIONFS}" = 'DEFAULT' ]; then |
2370 | 359 | aufs|unionfs) | 371 | for union in 'overlayfs' 'aufs' 'unionfs' |
2371 | 360 | modprobe "${MP_QUIET}" -b ${UNIONFS} || true | 372 | do |
2372 | 361 | if ! cut -f2 /proc/filesystems | grep -q "^${UNIONFS}\$" && \ | 373 | modprobe "${MP_QUIET}" -b ${union} || true |
2373 | 362 | [ -x /bin/unionfs-fuse ]; then | 374 | if cut -f2 /proc/filesystems | grep -q "^${union}\$"; then |
2374 | 363 | UNIONFS="unionfs-fuse" | 375 | UNIONFS="${union}" |
2375 | 364 | fi | 376 | break |
2376 | 365 | ;; | 377 | fi |
2377 | 366 | esac | 378 | done |
2378 | 379 | fi | ||
2379 | 380 | if [ "${UNIONFS}" = 'DEFAULT' -a -x /bin/unionfs-fuse ]; then | ||
2380 | 381 | UNIONFS="unionfs-fuse" | ||
2381 | 382 | fi | ||
2382 | 383 | # If all else fails fall back to aufs. | ||
2383 | 384 | if [ "${UNIONFS}" = 'DEFAULT' ]; then | ||
2384 | 385 | UNIONFS='aufs' | ||
2385 | 386 | fi | ||
2386 | 367 | 387 | ||
2387 | 368 | # run-init can't deal with images in a subdir, but we're going to | 388 | # run-init can't deal with images in a subdir, but we're going to |
2388 | 369 | # move all of these away before it runs anyway. No, we're not, | 389 | # move all of these away before it runs anyway. No, we're not, |
2389 | @@ -375,9 +395,7 @@ | |||
2390 | 375 | # Let's just mount the read-only file systems first | 395 | # Let's just mount the read-only file systems first |
2391 | 376 | rofsstring="" | 396 | rofsstring="" |
2392 | 377 | rofslist="" | 397 | rofslist="" |
2396 | 378 | if [ "${NETBOOT}" = "nfs" ] ; then | 398 | if [ "${UNIONFS}" = "aufs" ]; then |
2394 | 379 | roopt="nfsro" # work around a bug in nfs-unionfs locking | ||
2395 | 380 | elif [ "${UNIONFS}" = "aufs" ]; then | ||
2397 | 381 | roopt="rr" | 399 | roopt="rr" |
2398 | 382 | elif [ "${UNIONFS}" = "unionfs-fuse" ]; then | 400 | elif [ "${UNIONFS}" = "unionfs-fuse" ]; then |
2399 | 383 | roopt="RO" | 401 | roopt="RO" |
2400 | @@ -431,9 +449,29 @@ | |||
2401 | 431 | mkdir -p /dev/.initramfs/varrun | 449 | mkdir -p /dev/.initramfs/varrun |
2402 | 432 | pidof unionfs-fuse >> /dev/.initramfs/varrun/sendsigs.omit || true | 450 | pidof unionfs-fuse >> /dev/.initramfs/varrun/sendsigs.omit || true |
2403 | 433 | ;; | 451 | ;; |
2405 | 434 | *) | 452 | aufs|unionfs) |
2406 | 435 | mount -t ${UNIONFS} -o noatime,dirs=/cow=rw:$rofsstring ${UNIONFS} "$rootmnt" || panic "${UNIONFS} mount failed" | 453 | mount -t ${UNIONFS} -o noatime,dirs=/cow=rw:$rofsstring ${UNIONFS} "$rootmnt" || panic "${UNIONFS} mount failed" |
2407 | 436 | ;; | 454 | ;; |
2408 | 455 | overlayfs) | ||
2409 | 456 | # Mount the layers pairwise from the bottom onto rootmnt, | ||
2410 | 457 | # for the second and later layers rootmnt forms the lower layer. | ||
2411 | 458 | mounts="" | ||
2412 | 459 | for mount in /cow $rofslist | ||
2413 | 460 | do | ||
2414 | 461 | mounts="$mount $mounts" | ||
2415 | 462 | done | ||
2416 | 463 | lower="" | ||
2417 | 464 | for mount in $mounts | ||
2418 | 465 | do | ||
2419 | 466 | if [ "$lower" = "" ]; then | ||
2420 | 467 | lower="$mount" | ||
2421 | 468 | continue | ||
2422 | 469 | fi | ||
2423 | 470 | mount -t overlayfs -o "upperdir=$mount,lowerdir=$lower" \ | ||
2424 | 471 | "$mount" "$rootmnt" | ||
2425 | 472 | lower="$rootmnt" | ||
2426 | 473 | done | ||
2427 | 474 | ;; | ||
2428 | 437 | esac | 475 | esac |
2429 | 438 | 476 | ||
2430 | 439 | # Adding other custom mounts | 477 | # Adding other custom mounts |
2431 | @@ -545,7 +583,7 @@ | |||
2432 | 545 | fi | 583 | fi |
2433 | 546 | fi | 584 | fi |
2434 | 547 | # or do the scan of block devices | 585 | # or do the scan of block devices |
2436 | 548 | for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|fd)"); do | 586 | for sysblock in $(echo /sys/block/* | tr ' ' '\n' | egrep -v "/(loop|ram|fd)"); do |
2437 | 549 | devname=$(sys2dev "${sysblock}") | 587 | devname=$(sys2dev "${sysblock}") |
2438 | 550 | [ -e "$devname" ] || continue | 588 | [ -e "$devname" ] || continue |
2439 | 551 | fstype=$(get_fstype "${devname}") | 589 | fstype=$(get_fstype "${devname}") |
2440 | @@ -562,7 +600,8 @@ | |||
2441 | 562 | elif [ "${fstype}" = "squashfs" -o \ | 600 | elif [ "${fstype}" = "squashfs" -o \ |
2442 | 563 | "${fstype}" = "ext4" -o \ | 601 | "${fstype}" = "ext4" -o \ |
2443 | 564 | "${fstype}" = "ext3" -o \ | 602 | "${fstype}" = "ext3" -o \ |
2445 | 565 | "${fstype}" = "ext2" ]; then | 603 | "${fstype}" = "ext2" -o \ |
2446 | 604 | "${fstype}" = "btrfs" ]; then | ||
2447 | 566 | # This is an ugly hack situation, the block device has | 605 | # This is an ugly hack situation, the block device has |
2448 | 567 | # an image directly on it. It's hopefully | 606 | # an image directly on it. It's hopefully |
2449 | 568 | # casper, so take it and run with it. | 607 | # casper, so take it and run with it. |
2450 | @@ -651,6 +690,34 @@ | |||
2451 | 651 | mount -n -o bind /dev "${rootmnt}/dev" | 690 | mount -n -o bind /dev "${rootmnt}/dev" |
2452 | 652 | fi | 691 | fi |
2453 | 653 | 692 | ||
2454 | 693 | # Open up two fifo's fd's for debconf-communicate to use. Speeds up | ||
2455 | 694 | # the Casper process considerably. | ||
2456 | 695 | log_begin_msg "Creating debconf-communicate fifo mechanism" | ||
2457 | 696 | mkfifo /tmp/debconf-in.fifo | ||
2458 | 697 | mkfifo /tmp/debconf-out.fifo | ||
2459 | 698 | |||
2460 | 699 | # Make the template database read-only, so that passthrough debconf | ||
2461 | 700 | # instances can write to it directly; otherwise templates are only | ||
2462 | 701 | # passed through when necessary. Use temporary config databases as | ||
2463 | 702 | # well; we'll copy their contents back at the end. | ||
2464 | 703 | DEBCONF_TMPDIR="$(chroot /root mktemp -dt debconf.XXXXXX)" | ||
2465 | 704 | cp -a /root/var/cache/debconf/config.dat "/root$DEBCONF_TMPDIR/" | ||
2466 | 705 | cp -a /root/var/cache/debconf/passwords.dat "/root$DEBCONF_TMPDIR/" | ||
2467 | 706 | sed "s,^Filename: /var/cache/debconf/\(config\|passwords\).dat$,Filename: $DEBCONF_TMPDIR/\1.dat,; /^Name: templatedb/a\ | ||
2468 | 707 | Readonly: true" /root/etc/debconf.conf >"/root$DEBCONF_TMPDIR/debconf.conf" | ||
2469 | 708 | |||
2470 | 709 | DEBCONF_SYSTEMRC="$DEBCONF_TMPDIR/debconf.conf" chroot /root debconf-communicate -fnoninteractive casper > /tmp/debconf-out.fifo < /tmp/debconf-in.fifo & | ||
2471 | 710 | |||
2472 | 711 | if [ ! -p /tmp/debconf-in.fifo ] || [ ! -p /tmp/debconf-out.fifo ]; then | ||
2473 | 712 | log_warning_msg "failed to setup debconf-communicate channel" | ||
2474 | 713 | fi | ||
2475 | 714 | log_end_msg | ||
2476 | 715 | |||
2477 | 716 | # Order matters! | ||
2478 | 717 | # These file descriptors must stay open until we're finished with | ||
2479 | 718 | # debconf-communicate. | ||
2480 | 719 | exec 4</tmp/debconf-out.fifo 3>/tmp/debconf-in.fifo | ||
2481 | 720 | |||
2482 | 654 | maybe_break casper-bottom | 721 | maybe_break casper-bottom |
2483 | 655 | [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/casper-bottom" | 722 | [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/casper-bottom" |
2484 | 656 | 723 | ||
2485 | @@ -661,6 +728,20 @@ | |||
2486 | 661 | umount "${rootmnt}/dev" | 728 | umount "${rootmnt}/dev" |
2487 | 662 | fi | 729 | fi |
2488 | 663 | 730 | ||
2489 | 731 | # Close the fd's associated with debconf-communicate. | ||
2490 | 732 | exec 3>&- 4<&- | ||
2491 | 733 | rm -f /tmp/debconf-in.fifo | ||
2492 | 734 | rm -f /tmp/debconf-out.fifo | ||
2493 | 735 | |||
2494 | 736 | # Copy config database changes back to the master files. | ||
2495 | 737 | chroot /root debconf-copydb tmpdb config \ | ||
2496 | 738 | --config=Name:tmpdb --config=Driver:File \ | ||
2497 | 739 | --config="Filename:$DEBCONF_TMPDIR/config.dat" | ||
2498 | 740 | chroot /root debconf-copydb tmpdb passwords \ | ||
2499 | 741 | --config=Name:tmpdb --config=Driver:File \ | ||
2500 | 742 | --config="Filename:$DEBCONF_TMPDIR/passwords.dat" | ||
2501 | 743 | rm -rf "$DEBCONF_TMPDIR" | ||
2502 | 744 | |||
2503 | 664 | exec 1>&6 6>&- | 745 | exec 1>&6 6>&- |
2504 | 665 | exec 2>&7 7>&- | 746 | exec 2>&7 7>&- |
2505 | 666 | kill "$tailpid" | 747 | kill "$tailpid" |
2506 | 667 | 748 | ||
2507 | === modified file 'scripts/casper-bottom/05mountpoints' | |||
2508 | --- scripts/casper-bottom/05mountpoints 2010-01-05 16:54:40 +0000 | |||
2509 | +++ scripts/casper-bottom/05mountpoints 2011-10-06 10:04:28 +0000 | |||
2510 | @@ -24,4 +24,8 @@ | |||
2511 | 24 | mkdir -p /root/cdrom | 24 | mkdir -p /root/cdrom |
2512 | 25 | mount -n -o move /cdrom /root/cdrom | 25 | mount -n -o move /cdrom /root/cdrom |
2513 | 26 | 26 | ||
2514 | 27 | # temporary hack for LP#727783 | ||
2515 | 28 | mkdir -p /root/media | ||
2516 | 29 | ln -s /cdrom /root/media/cdrom | ||
2517 | 30 | |||
2518 | 27 | log_end_msg | 31 | log_end_msg |
2519 | 28 | 32 | ||
2520 | === added file 'scripts/casper-bottom/07remove_oem_config' | |||
2521 | --- scripts/casper-bottom/07remove_oem_config 1970-01-01 00:00:00 +0000 | |||
2522 | +++ scripts/casper-bottom/07remove_oem_config 2011-10-06 10:04:28 +0000 | |||
2523 | @@ -0,0 +1,32 @@ | |||
2524 | 1 | #!/bin/sh | ||
2525 | 2 | |||
2526 | 3 | PREREQ="" | ||
2527 | 4 | DESCRIPTION="Removing oem-config if installed..." | ||
2528 | 5 | |||
2529 | 6 | prereqs() | ||
2530 | 7 | { | ||
2531 | 8 | echo "$PREREQ" | ||
2532 | 9 | } | ||
2533 | 10 | |||
2534 | 11 | case $1 in | ||
2535 | 12 | # get pre-requisites | ||
2536 | 13 | prereqs) | ||
2537 | 14 | prereqs | ||
2538 | 15 | exit 0 | ||
2539 | 16 | ;; | ||
2540 | 17 | esac | ||
2541 | 18 | |||
2542 | 19 | . /scripts/casper-functions | ||
2543 | 20 | |||
2544 | 21 | # Only do this on ARM | ||
2545 | 22 | if ! uname -m | grep -q arm; then exit 0; fi | ||
2546 | 23 | |||
2547 | 24 | log_begin_msg "$DESCRIPTION" | ||
2548 | 25 | |||
2549 | 26 | # if oem-config is installed, we need to remove it to remove the desktop | ||
2550 | 27 | # file diversion, and to remove the OEM icons from showing up before we | ||
2551 | 28 | # install the image. | ||
2552 | 29 | |||
2553 | 30 | chroot /root apt-get -y --purge remove oem-config </dev/null || true | ||
2554 | 31 | |||
2555 | 32 | log_end_msg | ||
2556 | 0 | 33 | ||
2557 | === modified file 'scripts/casper-bottom/10adduser' | |||
2558 | --- scripts/casper-bottom/10adduser 2010-01-05 16:54:40 +0000 | |||
2559 | +++ scripts/casper-bottom/10adduser 2011-10-06 10:04:28 +0000 | |||
2560 | @@ -17,28 +17,25 @@ | |||
2561 | 17 | esac | 17 | esac |
2562 | 18 | 18 | ||
2563 | 19 | . /scripts/casper-functions | 19 | . /scripts/casper-functions |
2564 | 20 | load_confmodule | ||
2565 | 20 | 21 | ||
2566 | 21 | log_begin_msg "$DESCRIPTION" | 22 | log_begin_msg "$DESCRIPTION" |
2567 | 22 | 23 | ||
2568 | 23 | # U6aMy0wojraho is just a blank password | 24 | # U6aMy0wojraho is just a blank password |
2576 | 24 | chroot /root debconf-communicate -fnoninteractive casper > /dev/null <<EOF | 25 | db_set passwd/root-password-crypted '*' |
2577 | 25 | set passwd/root-password-crypted * | 26 | db_set passwd/user-password-crypted U6aMy0wojraho |
2578 | 26 | set passwd/user-password-crypted U6aMy0wojraho | 27 | db_set passwd/user-fullname "$USERFULLNAME" |
2579 | 27 | set passwd/user-fullname $USERFULLNAME | 28 | db_set passwd/username "$USERNAME" |
2580 | 28 | set passwd/username $USERNAME | 29 | db_set passwd/user-uid 999 |
2574 | 29 | set passwd/user-uid 999 | ||
2575 | 30 | EOF | ||
2581 | 31 | 30 | ||
2582 | 32 | chroot /root /usr/lib/user-setup/user-setup-apply > /dev/null | 31 | chroot /root /usr/lib/user-setup/user-setup-apply > /dev/null |
2583 | 33 | 32 | ||
2584 | 34 | # Clear out debconf database again to avoid confusing ubiquity later. | 33 | # Clear out debconf database again to avoid confusing ubiquity later. |
2592 | 35 | chroot /root debconf-communicate -fnoninteractive casper > /dev/null <<EOF | 34 | db_set passwd/root-password-crypted |
2593 | 36 | set passwd/root-password-crypted | 35 | db_set passwd/user-password-crypted |
2594 | 37 | set passwd/user-password-crypted | 36 | db_set passwd/user-fullname |
2595 | 38 | set passwd/user-fullname | 37 | db_set passwd/username |
2596 | 39 | set passwd/username | 38 | db_set passwd/user-uid |
2590 | 40 | set passwd/user-uid | ||
2591 | 41 | EOF | ||
2597 | 42 | 39 | ||
2598 | 43 | if [ -f /root/etc/sudoers ]; then | 40 | if [ -f /root/etc/sudoers ]; then |
2599 | 44 | if [ "${BUILD_SYSTEM}" = "Ubuntu" ]; then | 41 | if [ "${BUILD_SYSTEM}" = "Ubuntu" ]; then |
2600 | @@ -55,7 +52,11 @@ | |||
2601 | 55 | # XXX - awful hack to stop xscreensaver locking the screen (#7150) | 52 | # XXX - awful hack to stop xscreensaver locking the screen (#7150) |
2602 | 56 | echo 'RUNNING_UNDER_GDM="yes"' >> /root/etc/environment | 53 | echo 'RUNNING_UNDER_GDM="yes"' >> /root/etc/environment |
2603 | 57 | 54 | ||
2605 | 58 | RELEASE="$(cut -d' ' -f1-2 /root/cdrom/.disk/info 2>/dev/null)" || RELEASE="" | 55 | LTS="$(cut -d' ' -f3 /root/cdrom/.disk/info 2>/dev/null)" || LTS= |
2606 | 56 | RELEASE="$(cut -d' ' -f1-2 /root/cdrom/.disk/info 2>/dev/null)" || RELEASE= | ||
2607 | 57 | if [ "$LTS" = "LTS" ] && [ -n "$RELEASE" ]; then | ||
2608 | 58 | RELEASE="$RELEASE LTS" | ||
2609 | 59 | fi | ||
2610 | 59 | for file in /usr/share/applications/ubiquity-gtkui.desktop /usr/share/applications/kde4/ubiquity-kdeui.desktop; do | 60 | for file in /usr/share/applications/ubiquity-gtkui.desktop /usr/share/applications/kde4/ubiquity-kdeui.desktop; do |
2611 | 60 | if [ -f "/root/$file" ]; then | 61 | if [ -f "/root/$file" ]; then |
2612 | 61 | sed -i "s/RELEASE/$RELEASE/" "/root$file" | 62 | sed -i "s/RELEASE/$RELEASE/" "/root$file" |
2613 | @@ -97,15 +98,4 @@ | |||
2614 | 97 | fi | 98 | fi |
2615 | 98 | fi | 99 | fi |
2616 | 99 | 100 | ||
2617 | 100 | #Mythbuntu | ||
2618 | 101 | if [ -d "/root/usr/share/mythbuntu" ]; then | ||
2619 | 102 | if [ -f "/root/usr/share/applications/mythbuntu-live-frontend.desktop" ]; then | ||
2620 | 103 | chroot /root install -d -o $USERNAME -g $USERNAME /home/$USERNAME/Desktop | ||
2621 | 104 | chroot /root install -D -o $USERNAME -g $USERNAME /usr/share/applications/mythbuntu-live-frontend.desktop /home/$USERNAME/Desktop/mythbuntu-live-frontend.desktop | ||
2622 | 105 | fi | ||
2623 | 106 | if [ -f "/root/etc/xdg/mythbuntu/xfce4/mcs_settings/desktop.xml" ]; then | ||
2624 | 107 | sed -i "s/<\/mcs/\t<option\ name=\"showremovable\"\ type=\"int\"\ value=\"0\"\/>\n<\/mcs/" /root/etc/xdg/mythbuntu/xfce4/mcs_settings/desktop.xml | ||
2625 | 108 | fi | ||
2626 | 109 | fi | ||
2627 | 110 | |||
2628 | 111 | log_end_msg | 101 | log_end_msg |
2629 | 112 | 102 | ||
2630 | === modified file 'scripts/casper-bottom/15autologin' | |||
2631 | --- scripts/casper-bottom/15autologin 2010-01-05 16:54:40 +0000 | |||
2632 | +++ scripts/casper-bottom/15autologin 2011-10-06 10:04:28 +0000 | |||
2633 | @@ -20,16 +20,24 @@ | |||
2634 | 20 | 20 | ||
2635 | 21 | log_begin_msg "$DESCRIPTION" | 21 | log_begin_msg "$DESCRIPTION" |
2636 | 22 | 22 | ||
2638 | 23 | if [ -d /root/etc/gdm ] && [ ! -e /root/etc/gdm/custom.conf ]; then | 23 | if [ -d /root/etc/gdm ]; then |
2639 | 24 | # Configure GDM autologin | 24 | # Configure GDM autologin |
2648 | 25 | cat > /root/etc/gdm/custom.conf <<EOF | 25 | GDMCustomFile=/root/etc/gdm/custom.conf |
2649 | 26 | [daemon] | 26 | AutologinParameters="AutomaticLoginEnable=true\n\ |
2650 | 27 | AutomaticLoginEnable=true | 27 | AutomaticLogin=$USERNAME\n\ |
2651 | 28 | AutomaticLogin=$USERNAME | 28 | TimedLoginEnable=true\n\ |
2652 | 29 | TimedLoginEnable=true | 29 | TimedLogin=$USERNAME\n\ |
2653 | 30 | TimedLogin=$USERNAME | 30 | TimedLoginDelay=10" |
2654 | 31 | TimedLoginDelay=10 | 31 | |
2655 | 32 | EOF | 32 | # Prevent from updating if parameters already present (persistent usb key) |
2656 | 33 | if ! `grep -qs 'AutomaticLoginEnable' $GDMCustomFile` ; then | ||
2657 | 34 | if ! `grep -qs '\[daemon\]' $GDMCustomFile` ; then | ||
2658 | 35 | echo '[daemon]' >> $GDMCustomFile | ||
2659 | 36 | fi | ||
2660 | 37 | sed -i "s/\[daemon\]/\[daemon\]\n$AutologinParameters/" $GDMCustomFile | ||
2661 | 38 | chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool \ | ||
2662 | 39 | /apps/indicator-session/suppress_logout_menuitem true | ||
2663 | 40 | fi | ||
2664 | 33 | fi | 41 | fi |
2665 | 34 | 42 | ||
2666 | 35 | if [ -f /root/etc/kde4/kdm/kdmrc ]; then | 43 | if [ -f /root/etc/kde4/kdm/kdmrc ]; then |
2667 | @@ -41,4 +49,40 @@ | |||
2668 | 41 | /root/etc/kde4/kdm/kdmrc | 49 | /root/etc/kde4/kdm/kdmrc |
2669 | 42 | fi | 50 | fi |
2670 | 43 | 51 | ||
2671 | 52 | if [ -f /root/etc/lxdm/lxdm.conf ]; then | ||
2672 | 53 | # Configure LXDM autologin with LXDE session | ||
2673 | 54 | sed -i -r \ | ||
2674 | 55 | -e "s/^# autologin=dgod/autologin=$USERNAME/" \ | ||
2675 | 56 | -e "s/^# session/session/" \ | ||
2676 | 57 | -e "s/startlxde/startlubuntu/" \ | ||
2677 | 58 | /root/etc/lxdm/lxdm.conf | ||
2678 | 59 | fi | ||
2679 | 60 | |||
2680 | 61 | if [ -f /root/etc/xdg/lubuntu/lxdm/lxdm.conf ]; then | ||
2681 | 62 | # Configure LXDM autologin with Lubuntu session | ||
2682 | 63 | sed -i -r \ | ||
2683 | 64 | -e "s/^# autologin=dgod/autologin=$USERNAME/" \ | ||
2684 | 65 | -e "s/^# session/session/" \ | ||
2685 | 66 | -e "s/startlxde/startlubuntu/" \ | ||
2686 | 67 | /root/etc/xdg/lubuntu/lxdm/lxdm.conf | ||
2687 | 68 | fi | ||
2688 | 69 | |||
2689 | 70 | if [ -d /root/etc/lightdm ]; then | ||
2690 | 71 | # Configure LightDM autologin | ||
2691 | 72 | LightDMCustomFile=/root/etc/lightdm/lightdm.conf | ||
2692 | 73 | AutologinParameters="allow-guest=false\n\ | ||
2693 | 74 | autologin-guest=false\n\ | ||
2694 | 75 | autologin-user=$USERNAME\n\ | ||
2695 | 76 | autologin-user-timeout=0\n\ | ||
2696 | 77 | autologin-session=lightdm-autologin" | ||
2697 | 78 | |||
2698 | 79 | # Prevent from updating if parameters already present (persistent usb key) | ||
2699 | 80 | if ! `grep -qs '^autologin-user' $LightDMCustomFile` ; then | ||
2700 | 81 | if ! `grep -qs '\[SeatDefaults\]' $LightDMCustomFile` ; then | ||
2701 | 82 | echo '[SeatDefaults]' >> $LightDMCustomFile | ||
2702 | 83 | fi | ||
2703 | 84 | sed -i "s/\[SeatDefaults\]/\[SeatDefaults\]\n$AutologinParameters/" $LightDMCustomFile | ||
2704 | 85 | fi | ||
2705 | 86 | fi | ||
2706 | 87 | |||
2707 | 44 | log_end_msg | 88 | log_end_msg |
2708 | 45 | 89 | ||
2709 | === modified file 'scripts/casper-bottom/19keyboard' | |||
2710 | --- scripts/casper-bottom/19keyboard 2010-01-05 16:54:40 +0000 | |||
2711 | +++ scripts/casper-bottom/19keyboard 2011-10-06 10:04:28 +0000 | |||
2712 | @@ -48,6 +48,24 @@ | |||
2713 | 48 | console-setup/modelcode\?=*) | 48 | console-setup/modelcode\?=*) |
2714 | 49 | csmodel=${x#console-setup/modelcode\?=} | 49 | csmodel=${x#console-setup/modelcode\?=} |
2715 | 50 | ;; | 50 | ;; |
2716 | 51 | keyboard-configuration/layoutcode=*) | ||
2717 | 52 | cslayout=${x#keyboard-configuration/layoutcode=} | ||
2718 | 53 | ;; | ||
2719 | 54 | keyboard-configuration/layoutcode\?=*) | ||
2720 | 55 | cslayout=${x#keyboard-configuration/layoutcode\?=} | ||
2721 | 56 | ;; | ||
2722 | 57 | keyboard-configuration/variantcode=*) | ||
2723 | 58 | csvariant=${x#keyboard-configuration/variantcode=} | ||
2724 | 59 | ;; | ||
2725 | 60 | keyboard-configuration/variantcode\?=*) | ||
2726 | 61 | csvariant=${x#keyboard-configuration/variantcode\?=} | ||
2727 | 62 | ;; | ||
2728 | 63 | keyboard-configuration/modelcode=*) | ||
2729 | 64 | csmodel=${x#keyboard-configuration/modelcode=} | ||
2730 | 65 | ;; | ||
2731 | 66 | keyboard-configuration/modelcode\?=*) | ||
2732 | 67 | csmodel=${x#keyboard-configuration/modelcode\?=} | ||
2733 | 68 | ;; | ||
2734 | 51 | esac | 69 | esac |
2735 | 52 | done | 70 | done |
2736 | 53 | 71 | ||
2737 | @@ -151,35 +169,45 @@ | |||
2738 | 151 | fi | 169 | fi |
2739 | 152 | } | 170 | } |
2740 | 153 | 171 | ||
2742 | 154 | if [ -x /root/bin/setupcon ] && [ -f /root/etc/default/console-setup ]; then | 172 | PREFIX= |
2743 | 173 | CONFIGFILE= | ||
2744 | 174 | if [ -f /root/etc/default/keyboard ]; then | ||
2745 | 175 | PREFIX=keyboard-configuration | ||
2746 | 176 | CONFIGFILE=/etc/default/keyboard | ||
2747 | 177 | elif [ -f /root/etc/default/console-setup ]; then | ||
2748 | 178 | PREFIX=console-setup | ||
2749 | 179 | CONFIGFILE=/etc/default/console-setup | ||
2750 | 180 | fi | ||
2751 | 181 | if [ -x /root/bin/setupcon ] && [ "$PREFIX" ] && [ "$CONFIGFILE" ]; then | ||
2752 | 155 | if [ "$cslayout" ]; then | 182 | if [ "$cslayout" ]; then |
2753 | 156 | csoptions= | 183 | csoptions= |
2754 | 157 | adjust_console_setup | 184 | adjust_console_setup |
2755 | 158 | 185 | ||
2756 | 159 | chroot /root sed -i "s/^XKBLAYOUT=.*/XKBLAYOUT=\"$cslayout\"/" \ | 186 | chroot /root sed -i "s/^XKBLAYOUT=.*/XKBLAYOUT=\"$cslayout\"/" \ |
2758 | 160 | /etc/default/console-setup | 187 | "$CONFIGFILE" |
2759 | 161 | if [ "$csvariant" ]; then | 188 | if [ "$csvariant" ]; then |
2760 | 162 | chroot /root sed -i "s/^XKBVARIANT=.*/XKBVARIANT=\"$csvariant\"/" \ | 189 | chroot /root sed -i "s/^XKBVARIANT=.*/XKBVARIANT=\"$csvariant\"/" \ |
2762 | 163 | /etc/default/console-setup | 190 | "$CONFIGFILE" |
2763 | 164 | else | 191 | else |
2765 | 165 | casper-preseed /root console-setup/variantcode '' false | 192 | casper-preseed /root "$PREFIX/variantcode" '' false |
2766 | 166 | fi | 193 | fi |
2767 | 167 | if [ "$csmodel" ]; then | 194 | if [ "$csmodel" ]; then |
2768 | 168 | chroot /root sed -i "s/^XKBMODEL=.*/XKBMODEL=\"$csmodel\"/" \ | 195 | chroot /root sed -i "s/^XKBMODEL=.*/XKBMODEL=\"$csmodel\"/" \ |
2770 | 169 | /etc/default/console-setup | 196 | "$CONFIGFILE" |
2771 | 170 | else | 197 | else |
2773 | 171 | casper-preseed /root console-setup/modelcode '' false | 198 | casper-preseed /root "$PREFIX/modelcode" '' false |
2774 | 172 | fi | 199 | fi |
2775 | 173 | if [ "$csoptions" ]; then | 200 | if [ "$csoptions" ]; then |
2776 | 174 | chroot /root sed -i "s/^XKBOPTIONS=.*/XKBOPTIONS=\"$csoptions\"/" \ | 201 | chroot /root sed -i "s/^XKBOPTIONS=.*/XKBOPTIONS=\"$csoptions\"/" \ |
2778 | 175 | /etc/default/console-setup | 202 | "$CONFIGFILE" |
2779 | 176 | fi | 203 | fi |
2780 | 177 | else | 204 | else |
2784 | 178 | casper-preseed /root console-setup/layoutcode '' false | 205 | casper-preseed /root "$PREFIX/layoutcode" '' false |
2785 | 179 | casper-preseed /root console-setup/variantcode '' false | 206 | casper-preseed /root "$PREFIX/variantcode" '' false |
2786 | 180 | casper-preseed /root console-setup/modelcode '' false | 207 | casper-preseed /root "$PREFIX/modelcode" '' false |
2787 | 181 | fi | 208 | fi |
2789 | 182 | casper-preseed /root console-setup/optionscode '' false | 209 | casper-preseed /root "$PREFIX/optionscode" '' false |
2790 | 210 | # prefix remains console-setup even with keyboard-configuration | ||
2791 | 183 | casper-preseed /root console-setup/codesetcode '' false | 211 | casper-preseed /root console-setup/codesetcode '' false |
2792 | 184 | 212 | ||
2793 | 185 | if [ -f /root/etc/init.d/usplash ]; then | 213 | if [ -f /root/etc/init.d/usplash ]; then |
2794 | 186 | 214 | ||
2795 | === modified file 'scripts/casper-bottom/22gnome_panel_data' | |||
2796 | --- scripts/casper-bottom/22gnome_panel_data 2010-01-05 16:54:40 +0000 | |||
2797 | +++ scripts/casper-bottom/22gnome_panel_data 2011-10-06 10:04:28 +0000 | |||
2798 | @@ -20,12 +20,6 @@ | |||
2799 | 20 | 20 | ||
2800 | 21 | log_begin_msg "$DESCRIPTION" | 21 | log_begin_msg "$DESCRIPTION" |
2801 | 22 | 22 | ||
2802 | 23 | if [ -x /root/usr/sbin/laptop-detect ]; then | ||
2803 | 24 | if chroot /root laptop-detect; then | ||
2804 | 25 | casper-reconfigure /root gnome-panel-data | ||
2805 | 26 | fi | ||
2806 | 27 | fi | ||
2807 | 28 | |||
2808 | 29 | panel_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-panel-data 2>/dev/null) || panel_version="" | 23 | panel_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-panel-data 2>/dev/null) || panel_version="" |
2809 | 30 | if [ -n "$panel_version" ]; then | 24 | if [ -n "$panel_version" ]; then |
2810 | 31 | chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true | 25 | chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true |
2811 | 32 | 26 | ||
2812 | === modified file 'scripts/casper-bottom/22screensaver' | |||
2813 | --- scripts/casper-bottom/22screensaver 2010-01-05 16:54:40 +0000 | |||
2814 | +++ scripts/casper-bottom/22screensaver 2011-10-06 10:04:28 +0000 | |||
2815 | @@ -22,9 +22,7 @@ | |||
2816 | 22 | 22 | ||
2817 | 23 | gnome_screensaver_version=$(chroot /root dpkg-query -W --showformat='${Version}' gnome-screensaver 2>/dev/null) || gnome_screensaver_version="" | 23 | gnome_screensaver_version=$(chroot /root dpkg-query -W --showformat='${Version}' gnome-screensaver 2>/dev/null) || gnome_screensaver_version="" |
2818 | 24 | if [ -n "$gnome_screensaver_version" ]; then | 24 | if [ -n "$gnome_screensaver_version" ]; then |
2822 | 25 | # Support legacy gconf value | 25 | chroot /root sudo -u "$USERNAME" gsettings set org.gnome.desktop.screensaver lock-enabled false |
2820 | 26 | chroot /root sudo -u "$USERNAME" gconftool-2 -t bool -s /apps/gnome-screensaver/lock false | ||
2821 | 27 | chroot /root sudo -u "$USERNAME" gconftool-2 -t bool -s /apps/gnome-screensaver/lock_enabled false | ||
2823 | 28 | fi | 26 | fi |
2824 | 29 | 27 | ||
2825 | 30 | if [ -d /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config ]; then | 28 | if [ -d /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config ]; then |
2826 | 31 | 29 | ||
2827 | === modified file 'scripts/casper-bottom/22sslcert' | |||
2828 | --- scripts/casper-bottom/22sslcert 2010-01-05 16:54:40 +0000 | |||
2829 | +++ scripts/casper-bottom/22sslcert 2011-10-06 10:04:28 +0000 | |||
2830 | @@ -17,6 +17,7 @@ | |||
2831 | 17 | esac | 17 | esac |
2832 | 18 | 18 | ||
2833 | 19 | . /scripts/casper-functions | 19 | . /scripts/casper-functions |
2834 | 20 | load_confmodule | ||
2835 | 20 | 21 | ||
2836 | 21 | log_begin_msg "$DESCRIPTION" | 22 | log_begin_msg "$DESCRIPTION" |
2837 | 22 | 23 | ||
2838 | 23 | 24 | ||
2839 | === modified file 'scripts/casper-bottom/23networking' | |||
2840 | --- scripts/casper-bottom/23networking 2010-01-05 16:54:40 +0000 | |||
2841 | +++ scripts/casper-bottom/23networking 2011-10-06 10:04:28 +0000 | |||
2842 | @@ -73,27 +73,32 @@ | |||
2843 | 73 | EOF | 73 | EOF |
2844 | 74 | done | 74 | done |
2845 | 75 | fi | 75 | fi |
2859 | 76 | if [ ! -f /root/etc/resolv.conf -a -f /netboot.config ] ; then | 76 | if [ ! -f /root/etc/resolv.conf ] || [ -z "$(cat /root/etc/resolv.conf)" ]; then |
2860 | 77 | # create a resolv.conf if it is not present | 77 | if [ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ]; then |
2861 | 78 | cp /netboot.config /root/var/log/netboot.config | 78 | # create a resolv.conf if it is not present |
2862 | 79 | rc_search=$(cat netboot.config | awk '/domain/{print $3}') | 79 | cp /tmp/net-"${DEVICE}".conf /root/var/log/netboot.config |
2863 | 80 | rc_server0=$(cat netboot.config | awk '/dns0/{print $5}') | 80 | #ipconfig quotes DNSDOMAIN, quotes need to be removed for a correct resolv.conf |
2864 | 81 | rc_server1=$(cat netboot.config | awk '/dns0/{print $8}') | 81 | rc_search="$(sed -n 's/"//g;s/^DNSDOMAIN=//p' /tmp/net-"${DEVICE}".conf)" |
2865 | 82 | rc_server0="nameserver ${rc_server0}" | 82 | #search might contain multiple entries but domain should only have one. |
2866 | 83 | if [ "${rc_server1}" = "0.0.0.0" ]; then | 83 | rc_domain="$(sed -n -e 's/"//g;s/^DNSDOMAIN=\([^ ]\+\) *.*/\1/p' /tmp/net-"${DEVICE}".conf)" |
2867 | 84 | rc_server1="" | 84 | rc_server0="$(sed -n 's/^IPV4DNS0=//p' /tmp/net-"${DEVICE}".conf)" |
2868 | 85 | else | 85 | rc_server1="$(sed -n 's/^IPV4DNS1=//p' /tmp/net-"${DEVICE}".conf)" |
2869 | 86 | rc_server1="nameserver ${rc_server1}" | 86 | rc_server0="nameserver ${rc_server0}" |
2870 | 87 | fi | 87 | if [ "${rc_server1}" = "0.0.0.0" ]; then |
2871 | 88 | cat > /root/etc/resolv.conf <<EOF | 88 | rc_server1="" |
2872 | 89 | else | ||
2873 | 90 | rc_server1="nameserver ${rc_server1}" | ||
2874 | 91 | fi | ||
2875 | 92 | cat > /root/etc/resolv.conf <<EOF | ||
2876 | 89 | # /etc/resolv.conf | 93 | # /etc/resolv.conf |
2877 | 90 | # Autogenerated by casper | 94 | # Autogenerated by casper |
2878 | 91 | search ${rc_search} | 95 | search ${rc_search} |
2880 | 92 | domain ${rc_search} | 96 | domain ${rc_domain} |
2881 | 93 | ${rc_server0} | 97 | ${rc_server0} |
2882 | 94 | ${rc_server1} | 98 | ${rc_server1} |
2883 | 95 | EOF | 99 | EOF |
2885 | 96 | cat /root/etc/resolv.conf >> /root/var/log/netboot.config | 100 | cat /root/etc/resolv.conf >> /root/var/log/netboot.config |
2886 | 101 | fi | ||
2887 | 97 | fi | 102 | fi |
2888 | 98 | fi | 103 | fi |
2889 | 99 | 104 | ||
2890 | 100 | 105 | ||
2891 | === modified file 'scripts/casper-bottom/24preseed' | |||
2892 | --- scripts/casper-bottom/24preseed 2010-01-20 23:33:29 +0000 | |||
2893 | +++ scripts/casper-bottom/24preseed 2011-10-06 10:04:28 +0000 | |||
2894 | @@ -17,13 +17,40 @@ | |||
2895 | 17 | esac | 17 | esac |
2896 | 18 | 18 | ||
2897 | 19 | . /scripts/casper-functions | 19 | . /scripts/casper-functions |
2898 | 20 | load_confmodule | ||
2899 | 20 | 21 | ||
2900 | 21 | log_begin_msg "$DESCRIPTION" | 22 | log_begin_msg "$DESCRIPTION" |
2901 | 22 | 23 | ||
2902 | 23 | if [ -e /preseed.cfg ]; then | 24 | if [ -e /preseed.cfg ]; then |
2904 | 24 | chroot /root debconf-set-selections < /preseed.cfg | 25 | casper-set-selections /preseed.cfg |
2905 | 25 | fi | 26 | fi |
2906 | 26 | 27 | ||
2907 | 28 | network_started= | ||
2908 | 29 | |||
2909 | 30 | start_network () { | ||
2910 | 31 | [ -z "$network_started" ] || return | ||
2911 | 32 | [ -z "$NETBOOT" ] || return | ||
2912 | 33 | |||
2913 | 34 | mount -n -o bind /sys /root/sys | ||
2914 | 35 | mount -n -o bind /proc /root/proc | ||
2915 | 36 | mount -n -o bind /dev /root/dev | ||
2916 | 37 | mkdir -p /root/var/run/network | ||
2917 | 38 | # Close inherited fd's to prevent debconf-communicate from | ||
2918 | 39 | # continuing to run post-casper. | ||
2919 | 40 | chroot /root dhclient eth0 3>&- 4<&- | ||
2920 | 41 | |||
2921 | 42 | network_started=1 | ||
2922 | 43 | } | ||
2923 | 44 | |||
2924 | 45 | stop_network () { | ||
2925 | 46 | [ "$network_started" ] || return | ||
2926 | 47 | |||
2927 | 48 | chroot /root ifconfig eth0 down | ||
2928 | 49 | umount /root/sys | ||
2929 | 50 | umount /root/proc | ||
2930 | 51 | umount /root/dev | ||
2931 | 52 | } | ||
2932 | 53 | |||
2933 | 27 | locations= | 54 | locations= |
2934 | 28 | for x in $(cat /proc/cmdline); do | 55 | for x in $(cat /proc/cmdline); do |
2935 | 29 | case $x in | 56 | case $x in |
2936 | @@ -35,16 +62,8 @@ | |||
2937 | 35 | ;; | 62 | ;; |
2938 | 36 | url=*) | 63 | url=*) |
2939 | 37 | url_location="${x#url=}" | 64 | url_location="${x#url=}" |
2945 | 38 | mount -n -o bind /sys /root/sys | 65 | start_network |
2941 | 39 | mount -n -o bind /proc /root/proc | ||
2942 | 40 | mount -n -o bind /dev /root/dev | ||
2943 | 41 | mkdir -p /root/var/run/network | ||
2944 | 42 | [ "$NETBOOT" ] || chroot /root dhclient eth0 | ||
2946 | 43 | chroot /root wget -P /tmp "$url_location" | 66 | chroot /root wget -P /tmp "$url_location" |
2947 | 44 | [ "$NETBOOT" ] || chroot /root ifconfig eth0 down | ||
2948 | 45 | umount /root/sys | ||
2949 | 46 | umount /root/proc | ||
2950 | 47 | umount /root/dev | ||
2951 | 48 | locations="/tmp/$(basename "$url_location") $locations" | 67 | locations="/tmp/$(basename "$url_location") $locations" |
2952 | 49 | ;; | 68 | ;; |
2953 | 50 | */*\?=*) | 69 | */*\?=*) |
2954 | @@ -66,16 +85,22 @@ | |||
2955 | 66 | 85 | ||
2956 | 67 | if [ "$locations" ]; then | 86 | if [ "$locations" ]; then |
2957 | 68 | for item in $locations; do | 87 | for item in $locations; do |
2959 | 69 | chroot /root debconf-set-selections < "/root$item" | 88 | casper-set-selections "/root$item" |
2960 | 70 | done | 89 | done |
2961 | 71 | fi | 90 | fi |
2962 | 72 | 91 | ||
2967 | 73 | reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive casper)" | 92 | if db_get preseed/early_command && [ "$RET" ]; then |
2968 | 74 | if [ "${reply#0 }" != "$reply" ]; then | 93 | EARLY="$RET" |
2969 | 75 | reply="${reply#0 }" | 94 | if db_get preseed/allow-network && [ "$RET" = true ]; then |
2970 | 76 | sh -c "$reply" | 95 | start_network |
2971 | 96 | fi | ||
2972 | 97 | DEBIAN_HAS_FRONTEND= DEBCONF_REDIR= \ | ||
2973 | 98 | DEBIAN_FRONTEND=noninteractive \ | ||
2974 | 99 | sh -c "$EARLY" | ||
2975 | 77 | fi | 100 | fi |
2976 | 78 | 101 | ||
2977 | 102 | stop_network | ||
2978 | 103 | |||
2979 | 79 | # Clear out debconf database backup files to save memory. | 104 | # Clear out debconf database backup files to save memory. |
2980 | 80 | rm -f /root/var/cache/debconf/*.dat-old | 105 | rm -f /root/var/cache/debconf/*.dat-old |
2981 | 81 | 106 | ||
2982 | 82 | 107 | ||
2983 | === modified file 'scripts/casper-bottom/25configure_init' | |||
2984 | --- scripts/casper-bottom/25configure_init 2010-01-05 16:54:40 +0000 | |||
2985 | +++ scripts/casper-bottom/25configure_init 2011-10-06 10:04:28 +0000 | |||
2986 | @@ -54,7 +54,7 @@ | |||
2987 | 54 | rm -f /root/etc/rc?.d/[SK]??postfix | 54 | rm -f /root/etc/rc?.d/[SK]??postfix |
2988 | 55 | 55 | ||
2989 | 56 | # Avoid clobbering the user's clock | 56 | # Avoid clobbering the user's clock |
2991 | 57 | rm -f /root/etc/rc?.d/K??hwclock.sh | 57 | rm -f /root/etc/rc?.d/K??hwclock.sh /root/etc/init/hwclock-save.conf |
2992 | 58 | 58 | ||
2993 | 59 | # Disable readahead since it doesn't play well with squashfs + unionfs | 59 | # Disable readahead since it doesn't play well with squashfs + unionfs |
2994 | 60 | # use chmod instead of mv to not trigger unionfs bugs. | 60 | # use chmod instead of mv to not trigger unionfs bugs. |
2995 | @@ -65,7 +65,7 @@ | |||
2996 | 65 | # Disable ureadahead too since we don't ship a pack file for it anyway, so | 65 | # Disable ureadahead too since we don't ship a pack file for it anyway, so |
2997 | 66 | # all we'll end up doing is profiling the live CD boot. ureadahead also | 66 | # all we'll end up doing is profiling the live CD boot. ureadahead also |
2998 | 67 | # breaks partman occasionally by reading from its synchronisation FIFOs. | 67 | # breaks partman occasionally by reading from its synchronisation FIFOs. |
3000 | 68 | rm -f /root/etc/init/ureadahead.conf | 68 | rm -f /root/etc/init/ureadahead*.conf |
3001 | 69 | 69 | ||
3002 | 70 | log_end_msg | 70 | log_end_msg |
3003 | 71 | 71 | ||
3004 | 72 | 72 | ||
3005 | === added file 'scripts/casper-bottom/26disable_user_menu' | |||
3006 | --- scripts/casper-bottom/26disable_user_menu 1970-01-01 00:00:00 +0000 | |||
3007 | +++ scripts/casper-bottom/26disable_user_menu 2011-10-06 10:04:28 +0000 | |||
3008 | @@ -0,0 +1,28 @@ | |||
3009 | 1 | #!/bin/sh | ||
3010 | 2 | |||
3011 | 3 | PREREQ="" | ||
3012 | 4 | DESCRIPTION="Disabling user menu..." | ||
3013 | 5 | |||
3014 | 6 | prereqs() | ||
3015 | 7 | { | ||
3016 | 8 | echo "$PREREQ" | ||
3017 | 9 | } | ||
3018 | 10 | |||
3019 | 11 | case $1 in | ||
3020 | 12 | # get pre-requisites | ||
3021 | 13 | prereqs) | ||
3022 | 14 | prereqs | ||
3023 | 15 | exit 0 | ||
3024 | 16 | ;; | ||
3025 | 17 | esac | ||
3026 | 18 | |||
3027 | 19 | . /scripts/casper-functions | ||
3028 | 20 | |||
3029 | 21 | log_begin_msg "$DESCRIPTION" | ||
3030 | 22 | |||
3031 | 23 | indicator_session_version=$(chroot /root dpkg-query -W --showformat='${Version}' indicator-session 2>/dev/null) || indicator_session_version="" | ||
3032 | 24 | if [ -n "$indicator_session_version=" ]; then | ||
3033 | 25 | chroot /root sudo -u "$USERNAME" gsettings set com.canonical.indicator.session user-show-menu false | ||
3034 | 26 | fi | ||
3035 | 27 | |||
3036 | 28 | log_end_msg | ||
3037 | 0 | 29 | ||
3038 | === modified file 'scripts/casper-bottom/30accessibility' | |||
3039 | --- scripts/casper-bottom/30accessibility 2010-01-05 16:54:40 +0000 | |||
3040 | +++ scripts/casper-bottom/30accessibility 2011-10-06 10:04:28 +0000 | |||
3041 | @@ -1,172 +1,52 @@ | |||
3042 | 1 | #!/bin/sh | 1 | #!/bin/sh |
3044 | 2 | # If you change this, please also change the copy in ubiquity-hooks/30accessibility. | 2 | # If you are looking to change accessibility profile settings, plesae look in |
3045 | 3 | # bin/casper-a11y-enable. | ||
3046 | 3 | 4 | ||
3047 | 4 | PREREQ="" | 5 | PREREQ="" |
3048 | 5 | DESCRIPTION="Configuring accessibility options..." | 6 | DESCRIPTION="Configuring accessibility options..." |
3049 | 6 | 7 | ||
3050 | 7 | prereqs() | 8 | prereqs() |
3051 | 8 | { | 9 | { |
3053 | 9 | echo "$PREREQ" | 10 | echo "$PREREQ" |
3054 | 10 | } | 11 | } |
3055 | 11 | 12 | ||
3056 | 12 | case $1 in | 13 | case $1 in |
3057 | 13 | # get pre-requisites | 14 | # get pre-requisites |
3062 | 14 | prereqs) | 15 | prereqs) |
3063 | 15 | prereqs | 16 | prereqs |
3064 | 16 | exit 0 | 17 | exit 0 |
3065 | 17 | ;; | 18 | ;; |
3066 | 18 | esac | 19 | esac |
3067 | 19 | 20 | ||
3068 | 20 | . /scripts/casper-functions | 21 | . /scripts/casper-functions |
3069 | 21 | 22 | ||
3070 | 22 | log_begin_msg "$DESCRIPTION" | 23 | log_begin_msg "$DESCRIPTION" |
3071 | 23 | 24 | ||
3072 | 24 | gconf_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gconf2 2>/dev/null) || gconf_version="" | ||
3073 | 25 | |||
3074 | 26 | gct() { | ||
3075 | 27 | if [ "$gconf_version" ]; then | ||
3076 | 28 | chroot /root sudo -u "$USERNAME" gconftool-2 "$@" | ||
3077 | 29 | fi | ||
3078 | 30 | } | ||
3079 | 31 | |||
3080 | 32 | kderc_addtoprefixes() { | ||
3081 | 33 | if [ -e "/root/etc/kde4rc" ]; then | ||
3082 | 34 | sed -i "s|\\(prefixes=/usr/share/kubuntu-default-settings/kde-profile/default/\\)|\\1,$1|" /root/etc/kde4rc | ||
3083 | 35 | fi | ||
3084 | 36 | } | ||
3085 | 37 | |||
3086 | 38 | # Code to remove an applet from the default panel setup | ||
3087 | 39 | # This is rather hacky, but I can't think of a one or two line regular | ||
3088 | 40 | # expression to do this any more efficiently. Patches welcome. | ||
3089 | 41 | # In addition, setting these via gconf also doesn't work for some reason. | ||
3090 | 42 | remove_applet() | ||
3091 | 43 | { | ||
3092 | 44 | local line_no prior_line next_line | ||
3093 | 45 | |||
3094 | 46 | line_no=$(grep -n "<string>$1</string>" /root/usr/share/gconf/defaults/05_panel-default-setup.entries | cut -f 1 -d :) | ||
3095 | 47 | [ "$line_no" ] || return | ||
3096 | 48 | prior_line=$((line_no-1)) | ||
3097 | 49 | next_line=$((line_no+1)) | ||
3098 | 50 | sed -i -n "${prior_line},${next_line}!p" /root/usr/share/gconf/defaults/05_panel-default-setup.entries | ||
3099 | 51 | chroot /root update-gconf-defaults | ||
3100 | 52 | } | ||
3101 | 53 | |||
3102 | 54 | for x in $(cat /proc/cmdline); do | 25 | for x in $(cat /proc/cmdline); do |
3218 | 55 | case $x in | 26 | case $x in |
3219 | 56 | # Lesser Visual Impairment | 27 | # Lesser Visual Impairment |
3220 | 57 | access=v1) | 28 | access=v1) |
3221 | 58 | gct -s -t string /desktop/gnome/interface/gtk_theme HighContrastLargePrint | 29 | /root/usr/bin/casper-a11y-enable -initramfs -user="$USERNAME" -chroot=/root -script high-contrast |
3222 | 59 | gct -s -t string /desktop/gnome/interface/icon_theme HighContrast | 30 | ;; |
3223 | 60 | gct -s -t string /desktop/gnome/interface/monospace_font_name "monospace 18" | 31 | # Moderate Visual Impairment |
3224 | 61 | gct -s -t string /desktop/gnome/interface/font_name "sans 18" | 32 | access=v2) |
3225 | 62 | gct -s -t string /apps/metacity/general/theme Atlanta | 33 | /root/usr/bin/casper-a11y-enable -initramfs -user="$USERNAME" -chroot=/root -script magnifier |
3226 | 63 | gct -s -t string /desktop/gnome/background/picture_filename "" | 34 | ;; |
3227 | 64 | gct -s -t string /desktop/gnome/background/picture_options none | 35 | # Blindness |
3228 | 65 | gct -s -t string /desktop/gnome/background/primary_color \#666666 | 36 | access=v3) |
3229 | 66 | gct -s -t string /desktop/gnome/background/secondary_color \#7F7F7F | 37 | /root/usr/bin/casper-a11y-enable -initramfs -user="$USERNAME" -chroot=/root -script blindness |
3230 | 67 | gct -s -t string /desktop/gnome/background/color_shading_type solid | 38 | ;; |
3231 | 68 | gct -s -t int /desktop/gnome/peripherals/mouse/cursor_size 48 | 39 | # Braille |
3232 | 69 | gct -s -t string /desktop/gnome/peripherals/mouse/cursor_theme whiteglass | 40 | braille=ask) |
3233 | 70 | 41 | /root/usr/bin/casper-a11y-enable -initramfs -user="$USERNAME" -chroot=/root -script braille | |
3234 | 71 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/ | 42 | ;; |
3235 | 72 | if [ -d /root/usr/share/xubuntu-default-settings/accessibility ]; then | 43 | # Minor Motor Difficulties |
3236 | 73 | cp -a /root/usr/share/xubuntu-default-settings/accessibility/* /root/etc/xdg/ | 44 | access=m1) |
3237 | 74 | fi | 45 | /root/usr/bin/casper-a11y-enable -initramfs -user="$USERNAME" -chroot=/root -script keyboard-modifiers |
3238 | 75 | ;; | 46 | ;; |
3239 | 76 | # Moderate Visual Impairment | 47 | # Motor Difficulties - pointing devices |
3240 | 77 | access=v2) | 48 | access=m2) |
3241 | 78 | gct -s -t bool /desktop/gnome/interface/accessibility true | 49 | /root/usr/bin/casper-a11y-enable -initramfs -user="$USERNAME" -chroot=/root -script onscreen-keyboard |
3127 | 79 | gct -s -t bool /desktop/gnome/applications/at/visual/startup true | ||
3128 | 80 | gct -s -t string /desktop/gnome/applications/at/visual/exec orca | ||
3129 | 81 | if [ -x /root/usr/bin/orca ]; then | ||
3130 | 82 | mkdir -p /root/home/$USERNAME/.orca | ||
3131 | 83 | echo "import orca.settings" >> /root/home/$USERNAME/.orca/user-settings.py | ||
3132 | 84 | echo "orca.settings.enableSpeech = False" >> /root/home/$USERNAME/.orca/user-settings.py | ||
3133 | 85 | echo "orca.settings.enableMagnifier = True" >> /root/home/$USERNAME/.orca/user-settings.py | ||
3134 | 86 | chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca | ||
3135 | 87 | fi | ||
3136 | 88 | gct -s -t bool /apps/gksu/disable-grab true | ||
3137 | 89 | gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity | ||
3138 | 90 | sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /root/etc/sudoers | ||
3139 | 91 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/,/usr/share/kubuntu-default-settings/kde-profile/moderate-visual-impairment/ | ||
3140 | 92 | ;; | ||
3141 | 93 | # Blindness | ||
3142 | 94 | access=v3) | ||
3143 | 95 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
3144 | 96 | gct -s -t bool /apps/gksu/disable-grab true | ||
3145 | 97 | gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity | ||
3146 | 98 | gct -s -t bool /desktop/gnome/applications/at/visual/startup true | ||
3147 | 99 | gct -s -t string /desktop/gnome/applications/at/visual/exec orca | ||
3148 | 100 | remove_applet fast_user_switch | ||
3149 | 101 | if [ -x /root/usr/bin/pulse-session ]; then | ||
3150 | 102 | mkdir -p /root/var/lib/pulseaudio | ||
3151 | 103 | touch /root/var/lib/pulseaudio/pulse_a11y_nostart | ||
3152 | 104 | chroot /root chown root.root /var/lib/pulseaudio/pulse_a11y_nostart | ||
3153 | 105 | mkdir -p /root/home/$USERNAME/.pulse | ||
3154 | 106 | echo "autospawn = no" > /root/home/$USERNAME/.pulse/client.conf | ||
3155 | 107 | chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.pulse | ||
3156 | 108 | fi | ||
3157 | 109 | sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /root/etc/sudoers | ||
3158 | 110 | if [ -x /root/usr/bin/orca ]; then | ||
3159 | 111 | mkdir -p /root/home/$USERNAME/.orca | ||
3160 | 112 | chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca | ||
3161 | 113 | fi | ||
3162 | 114 | ;; | ||
3163 | 115 | # Braille | ||
3164 | 116 | braille=ask) | ||
3165 | 117 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
3166 | 118 | gct -s -t bool /desktop/gnome/applications/at/visual/startup true | ||
3167 | 119 | gct -s -t string /desktop/gnome/applications/at/visual/exec orca | ||
3168 | 120 | if [ -x /root/usr/bin/orca ]; then | ||
3169 | 121 | mkdir -p /root/home/$USERNAME/.orca | ||
3170 | 122 | echo "import orca.settings" >> /root/home/$USERNAME/.orca/user-settings.py | ||
3171 | 123 | echo "orca.settings.enableSpeech = False" >> /root/home/$USERNAME/.orca/user-settings.py | ||
3172 | 124 | echo "orca.settings.enableBraille = True" >> /root/home/$USERNAME/.orca/user-settings.py | ||
3173 | 125 | chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca | ||
3174 | 126 | fi | ||
3175 | 127 | gct -s -t bool /apps/gksu/disable-grab true | ||
3176 | 128 | gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity | ||
3177 | 129 | remove_applet fast_user_switch | ||
3178 | 130 | sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /root/etc/sudoers | ||
3179 | 131 | if [ -x /root/usr/bin/pulse-session ]; then | ||
3180 | 132 | mkdir -p /root/var/lib/pulseaudio | ||
3181 | 133 | touch /root/var/lib/pulseaudio/pulse_a11y_nostart | ||
3182 | 134 | chroot /root chown root.root /var/lib/pulseaudio/pulse_a11y_nostart | ||
3183 | 135 | mkdir -p /root/home/$USERNAME/.pulse | ||
3184 | 136 | echo "autospawn = no" > /root/home/$USERNAME/.pulse/client.conf | ||
3185 | 137 | chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.pulse | ||
3186 | 138 | fi | ||
3187 | 139 | ;; | ||
3188 | 140 | # Minor Motor Difficulties | ||
3189 | 141 | access=m1) | ||
3190 | 142 | gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true | ||
3191 | 143 | gct -s -t bool /desktop/gnome/accessibility/keyboard/mousekeys_enable true | ||
3192 | 144 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true | ||
3193 | 145 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep true | ||
3194 | 146 | gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false | ||
3195 | 147 | gct -s -t bool /desktop/gnome/peripherals/keyboard/repeat true | ||
3196 | 148 | gct -s -t int /desktop/gnome/peripherals/keyboard/delay 700 | ||
3197 | 149 | gct -s -t int /desktop/gnome/peripherals/keyboard/rate 10 | ||
3198 | 150 | gct -s -t bool /apps/gksu/disable-grab true | ||
3199 | 151 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/ | ||
3200 | 152 | if [ -e /root/etc/xdg/xfce4/mcs_settings/keyboard.xml ]; then | ||
3201 | 153 | sed -i 's/0/1/' /root/etc/xdg/xfce4/mcs_settings/keyboard.xml | ||
3202 | 154 | fi | ||
3203 | 155 | ;; | ||
3204 | 156 | # Motor Difficulties - pointing devices | ||
3205 | 157 | access=m2) | ||
3206 | 158 | gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true | ||
3207 | 159 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
3208 | 160 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true | ||
3209 | 161 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep false | ||
3210 | 162 | gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false | ||
3211 | 163 | gct -s -t bool /desktop/gnome/applications/at/mobility/startup true | ||
3212 | 164 | gct -s -t string /desktop/gnome/applications/at/mobility/exec onboard | ||
3213 | 165 | |||
3214 | 166 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/,/usr/share/kubuntu-default-settings/kde-profile/motor-difficulties-pointing-devices/ | ||
3215 | 167 | if [ -e /root/etc/xdg/xfce4/mcs_settings/keyboard.xml ]; then | ||
3216 | 168 | sed -i '/Sticky/ s/0/1/' /root/etc/xdg/xfce4/mcs_settings/keyboard.xml | ||
3217 | 169 | fi | ||
3242 | 170 | ;; | 50 | ;; |
3243 | 171 | esac | 51 | esac |
3244 | 172 | done | 52 | done |
3245 | 173 | 53 | ||
3246 | === modified file 'scripts/casper-bottom/31disable_update_notifier' | |||
3247 | --- scripts/casper-bottom/31disable_update_notifier 2010-01-05 16:54:40 +0000 | |||
3248 | +++ scripts/casper-bottom/31disable_update_notifier 2011-10-06 10:04:28 +0000 | |||
3249 | @@ -31,4 +31,12 @@ | |||
3250 | 31 | # 'apt-get update' equivalent, so we disable it entirely. | 31 | # 'apt-get update' equivalent, so we disable it entirely. |
3251 | 32 | rm -f /root/usr/share/autostart/adept_notifier_auto.desktop | 32 | rm -f /root/usr/share/autostart/adept_notifier_auto.desktop |
3252 | 33 | 33 | ||
3253 | 34 | # Upgrading the live CD to new releases is probably not a great plan. | ||
3254 | 35 | chroot /root dpkg-divert --add --rename --quiet \ | ||
3255 | 36 | /usr/lib/update-manager/check-new-release | ||
3256 | 37 | ln -sf /bin/true /root/usr/lib/update-manager/check-new-release | ||
3257 | 38 | chroot /root dpkg-divert --add --rename --quiet \ | ||
3258 | 39 | /usr/lib/update-manager/check-new-release-gtk | ||
3259 | 40 | ln -sf /bin/true /root/usr/lib/update-manager/check-new-release-gtk | ||
3260 | 41 | |||
3261 | 34 | log_end_msg | 42 | log_end_msg |
3262 | 35 | 43 | ||
3263 | === modified file 'scripts/casper-bottom/32disable_hibernation' | |||
3264 | --- scripts/casper-bottom/32disable_hibernation 2010-01-05 16:54:40 +0000 | |||
3265 | +++ scripts/casper-bottom/32disable_hibernation 2011-10-06 10:04:28 +0000 | |||
3266 | @@ -20,15 +20,11 @@ | |||
3267 | 20 | 20 | ||
3268 | 21 | log_begin_msg "$DESCRIPTION" | 21 | log_begin_msg "$DESCRIPTION" |
3269 | 22 | 22 | ||
3280 | 23 | 23 | cat <<EOF > /root/var/lib/polkit-1/localauthority/50-local.d/disable-hibernate.pkla | |
3281 | 24 | gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-power-manager 2>/dev/null) || panel_version="" | 24 | [Disable hibernate in live system] |
3282 | 25 | if [ -n "$gpm_version" ]; then | 25 | Identity=unix-user:* |
3283 | 26 | # casper-reconfigure /root gnome-power-manager | 26 | Action=org.freedesktop.upower.hibernate |
3284 | 27 | chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gnome-power-manager/general/can_hibernate false | 27 | ResultActive=no |
3285 | 28 | fi | 28 | EOF |
3276 | 29 | |||
3277 | 30 | if [ -d /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config ]; then | ||
3278 | 31 | echo "disableHibernate=1" >> /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/guidance-power-managerrc | ||
3279 | 32 | fi | ||
3286 | 33 | 29 | ||
3287 | 34 | log_end_msg | 30 | log_end_msg |
3288 | 35 | 31 | ||
3289 | === added file 'scripts/casper-bottom/34disable_kde_services.OTHER' | |||
3290 | --- scripts/casper-bottom/34disable_kde_services.OTHER 1970-01-01 00:00:00 +0000 | |||
3291 | +++ scripts/casper-bottom/34disable_kde_services.OTHER 2011-10-06 10:04:28 +0000 | |||
3292 | @@ -0,0 +1,36 @@ | |||
3293 | 1 | #! /bin/sh | ||
3294 | 2 | |||
3295 | 3 | PREREQ="" | ||
3296 | 4 | DESCRIPTION="Disabling unnecessary KDE services..." | ||
3297 | 5 | |||
3298 | 6 | prereqs() | ||
3299 | 7 | { | ||
3300 | 8 | echo "$PREREQ" | ||
3301 | 9 | } | ||
3302 | 10 | |||
3303 | 11 | case $1 in | ||
3304 | 12 | # get pre-requisites | ||
3305 | 13 | prereqs) | ||
3306 | 14 | prereqs | ||
3307 | 15 | exit 0 | ||
3308 | 16 | ;; | ||
3309 | 17 | esac | ||
3310 | 18 | |||
3311 | 19 | . /scripts/casper-functions | ||
3312 | 20 | |||
3313 | 21 | log_begin_msg "$DESCRIPTION" | ||
3314 | 22 | |||
3315 | 23 | rm -f /root/usr/share/autostart/kab2kabc.desktop | ||
3316 | 24 | rm -f /root/usr/share/autostart/kaddressbookmigrator.desktop | ||
3317 | 25 | rm -f /root/usr/share/autostart/korgac.desktop | ||
3318 | 26 | rm -f /root/usr/share/autostart/printer-applet.desktop | ||
3319 | 27 | rm -f /root/usr/share/autostart/nepomukserver.desktop | ||
3320 | 28 | rm -f /root/usr/share/kde4/services/kwalletd.desktop | ||
3321 | 29 | rm -f /root/usr/share/kde4/services/kded/kpackagekitd.desktop | ||
3322 | 30 | if [ -z "${PERSISTENT}" ]; then | ||
3323 | 31 | rm -f /root/usr/share/kde4/services/kded/freespacenotifier.desktop | ||
3324 | 32 | fi | ||
3325 | 33 | rm -f /root/usr/share/kde4/services/plasma-runner-contacts.desktop # starts akonadi | ||
3326 | 34 | rm -f /root/usr/share/kde4/services/plasma-dataengine-calendar.desktop # starts akonadi | ||
3327 | 35 | |||
3328 | 36 | log_end_msg | ||
3329 | 0 | 37 | ||
3330 | === removed file 'scripts/casper-bottom/37kubuntu_netbook_installer_link' | |||
3331 | --- scripts/casper-bottom/37kubuntu_netbook_installer_link 2010-01-05 16:54:40 +0000 | |||
3332 | +++ scripts/casper-bottom/37kubuntu_netbook_installer_link 1970-01-01 00:00:00 +0000 | |||
3333 | @@ -1,28 +0,0 @@ | |||
3334 | 1 | #! /bin/sh | ||
3335 | 2 | |||
3336 | 3 | PREREQ="" | ||
3337 | 4 | DESCRIPTION="Adding installer to Kubuntu Netbook favourites..." | ||
3338 | 5 | |||
3339 | 6 | prereqs() | ||
3340 | 7 | { | ||
3341 | 8 | echo "$PREREQ" | ||
3342 | 9 | } | ||
3343 | 10 | |||
3344 | 11 | case $1 in | ||
3345 | 12 | # get pre-requisites | ||
3346 | 13 | prereqs) | ||
3347 | 14 | prereqs | ||
3348 | 15 | exit 0 | ||
3349 | 16 | ;; | ||
3350 | 17 | esac | ||
3351 | 18 | |||
3352 | 19 | . /scripts/casper-functions | ||
3353 | 20 | |||
3354 | 21 | log_begin_msg "$DESCRIPTION" | ||
3355 | 22 | |||
3356 | 23 | if [ -e "/root/usr/share/kubuntu-netbook-default-settings/share/config/moved_plasma-netbook-appletsrc" ]; then | ||
3357 | 24 | mv /root/usr/share/kubuntu-netbook-default-settings/share/config/moved_plasma-netbook-appletsrc \ | ||
3358 | 25 | /root/usr/share/kubuntu-netbook-default-settings/share/config/plasma-netbook-appletsrc | ||
3359 | 26 | fi | ||
3360 | 27 | |||
3361 | 28 | log_end_msg | ||
3362 | 29 | 0 | ||
3363 | === modified file 'scripts/casper-bottom/40install_driver_updates' | |||
3364 | --- scripts/casper-bottom/40install_driver_updates 2010-01-05 16:54:40 +0000 | |||
3365 | +++ scripts/casper-bottom/40install_driver_updates 2011-10-06 10:04:28 +0000 | |||
3366 | @@ -34,7 +34,13 @@ | |||
3367 | 34 | for deb in "/root$install_dir"/*; do | 34 | for deb in "/root$install_dir"/*; do |
3368 | 35 | [ -f "$deb" ] || continue | 35 | [ -f "$deb" ] || continue |
3369 | 36 | debbase="${deb##*/}" | 36 | debbase="${deb##*/}" |
3371 | 37 | if ! chroot /root dpkg -i "$install_dir/$debbase"; then | 37 | DEBIAN_HAS_FRONTEND= DEBCONF_REDIR= \ |
3372 | 38 | DEBIAN_FRONTEND=noninteractive \ | ||
3373 | 39 | chroot /root dpkg -i "$install_dir/$debbase" | ||
3374 | 40 | ret=$? | ||
3375 | 41 | if [ $ret != 0 ]; then | ||
3376 | 42 | DEBIAN_HAS_FRONTEND= DEBCONF_REDIR= \ | ||
3377 | 43 | DEBIAN_FRONTEND=noninteractive \ | ||
3378 | 38 | chroot /root dpkg -P "${debbase%%_*}" | 44 | chroot /root dpkg -P "${debbase%%_*}" |
3379 | 39 | fi | 45 | fi |
3380 | 40 | done | 46 | done |
3381 | 41 | 47 | ||
3382 | === modified file 'scripts/casper-bottom/41apt_cdrom' | |||
3383 | --- scripts/casper-bottom/41apt_cdrom 2010-01-05 16:54:40 +0000 | |||
3384 | +++ scripts/casper-bottom/41apt_cdrom 2011-10-06 10:04:28 +0000 | |||
3385 | @@ -18,4 +18,12 @@ | |||
3386 | 18 | 18 | ||
3387 | 19 | . /scripts/casper-functions | 19 | . /scripts/casper-functions |
3388 | 20 | 20 | ||
3390 | 21 | chroot /root apt-cdrom -m add | 21 | mount -n -o bind /sys /root/sys |
3391 | 22 | mount -n -o bind /proc /root/proc | ||
3392 | 23 | mount -n -o bind /dev /root/dev | ||
3393 | 24 | chroot /root apt-cdrom -o Acquire::cdrom::mount=/cdrom \ | ||
3394 | 25 | -o Dir::Media::MountPath=/cdrom \ | ||
3395 | 26 | -o Acquire::cdrom::AutoDetect=false -m add | ||
3396 | 27 | umount /root/dev | ||
3397 | 28 | umount /root/proc | ||
3398 | 29 | umount /root/sys | ||
3399 | 22 | 30 | ||
3400 | === removed file 'scripts/casper-bottom/42disable_apparmor' | |||
3401 | --- scripts/casper-bottom/42disable_apparmor 2010-01-05 16:54:40 +0000 | |||
3402 | +++ scripts/casper-bottom/42disable_apparmor 1970-01-01 00:00:00 +0000 | |||
3403 | @@ -1,26 +0,0 @@ | |||
3404 | 1 | #!/bin/sh | ||
3405 | 2 | # workaround for AppArmor bug #131976 | ||
3406 | 3 | |||
3407 | 4 | PREREQ="" | ||
3408 | 5 | DESCRIPTION="Disabling AppArmor (does not work with stacked file systems)..." | ||
3409 | 6 | |||
3410 | 7 | prereqs() | ||
3411 | 8 | { | ||
3412 | 9 | echo "$PREREQ" | ||
3413 | 10 | } | ||
3414 | 11 | |||
3415 | 12 | case $1 in | ||
3416 | 13 | # get pre-requisites | ||
3417 | 14 | prereqs) | ||
3418 | 15 | prereqs | ||
3419 | 16 | exit 0 | ||
3420 | 17 | ;; | ||
3421 | 18 | esac | ||
3422 | 19 | |||
3423 | 20 | . /scripts/casper-functions | ||
3424 | 21 | |||
3425 | 22 | log_begin_msg "$DESCRIPTION" | ||
3426 | 23 | |||
3427 | 24 | chroot /root update-rc.d -f apparmor remove | ||
3428 | 25 | |||
3429 | 26 | log_end_msg | ||
3430 | 27 | 0 | ||
3431 | === modified file 'scripts/casper-bottom/43disable_updateinitramfs' | |||
3432 | --- scripts/casper-bottom/43disable_updateinitramfs 2010-01-05 16:54:40 +0000 | |||
3433 | +++ scripts/casper-bottom/43disable_updateinitramfs 2011-10-06 10:04:28 +0000 | |||
3434 | @@ -27,13 +27,8 @@ | |||
3435 | 27 | if [ -w /root/cdrom ] && \ | 27 | if [ -w /root/cdrom ] && \ |
3436 | 28 | # rw is guaranteed to be first. | 28 | # rw is guaranteed to be first. |
3437 | 29 | grep -q ' /root/cdrom rw[, ]' /proc/self/mountinfo; then | 29 | grep -q ' /root/cdrom rw[, ]' /proc/self/mountinfo; then |
3445 | 30 | cat > /root/usr/sbin/update-initramfs <<'EOF' | 30 | ln -s /usr/share/casper/casper-update-initramfs \ |
3446 | 31 | #! /bin/sh | 31 | /root/usr/sbin/update-initramfs |
3440 | 32 | update-initramfs.distrib "$@" | ||
3441 | 33 | cp /initrd.img /cdrom/casper/initrd.gz | ||
3442 | 34 | cp /vmlinuz /cdrom/casper/vmlinuz | ||
3443 | 35 | exit 0 | ||
3444 | 36 | EOF | ||
3447 | 37 | else | 32 | else |
3448 | 38 | cat > /root/usr/sbin/update-initramfs <<EOF | 33 | cat > /root/usr/sbin/update-initramfs <<EOF |
3449 | 39 | #! /bin/sh | 34 | #! /bin/sh |
3450 | 40 | 35 | ||
3451 | === modified file 'scripts/casper-bottom/44pk_allow_ubuntu' | |||
3452 | --- scripts/casper-bottom/44pk_allow_ubuntu 2010-01-05 16:54:40 +0000 | |||
3453 | +++ scripts/casper-bottom/44pk_allow_ubuntu 2011-10-06 10:04:28 +0000 | |||
3454 | @@ -1,7 +1,7 @@ | |||
3455 | 1 | #!/bin/sh | 1 | #!/bin/sh |
3456 | 2 | 2 | ||
3457 | 3 | PREREQ="" | 3 | PREREQ="" |
3459 | 4 | DESCRIPTION="Grant administrative PolicyKit pivilieges to default user..." | 4 | DESCRIPTION="Grant administrative PolicyKit privileges to default user..." |
3460 | 5 | 5 | ||
3461 | 6 | prereqs() | 6 | prereqs() |
3462 | 7 | { | 7 | { |
3463 | @@ -21,27 +21,6 @@ | |||
3464 | 21 | log_begin_msg "$DESCRIPTION" | 21 | log_begin_msg "$DESCRIPTION" |
3465 | 22 | 22 | ||
3466 | 23 | # configure PolicyKit in live session | 23 | # configure PolicyKit in live session |
3467 | 24 | mkdir -p /root/etc/PolicyKit | ||
3468 | 25 | cat << EOF > /root/etc/PolicyKit/PolicyKit.conf | ||
3469 | 26 | <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- --> | ||
3470 | 27 | |||
3471 | 28 | <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN" | ||
3472 | 29 | "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd"> | ||
3473 | 30 | |||
3474 | 31 | <!-- See the manual page PolicyKit.conf(5) for file format --> | ||
3475 | 32 | |||
3476 | 33 | <config version="0.1"> | ||
3477 | 34 | <match user="root"> | ||
3478 | 35 | <return result="yes"/> | ||
3479 | 36 | </match> | ||
3480 | 37 | <!-- don't ask password for user in live session --> | ||
3481 | 38 | <match user="$USERNAME"> | ||
3482 | 39 | <return result="yes"/> | ||
3483 | 40 | </match> | ||
3484 | 41 | <define_admin_auth group="admin"/> | ||
3485 | 42 | </config> | ||
3486 | 43 | EOF | ||
3487 | 44 | |||
3488 | 45 | mkdir -p /root/var/lib/polkit-1/localauthority/10-vendor.d | 24 | mkdir -p /root/var/lib/polkit-1/localauthority/10-vendor.d |
3489 | 46 | cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla | 25 | cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla |
3490 | 47 | # Policy to allow the livecd user to bypass policykit | 26 | # Policy to allow the livecd user to bypass policykit |
3491 | @@ -49,7 +28,7 @@ | |||
3492 | 49 | Identity=unix-user:$USERNAME | 28 | Identity=unix-user:$USERNAME |
3493 | 50 | Action=* | 29 | Action=* |
3494 | 51 | ResultAny=no | 30 | ResultAny=no |
3496 | 52 | ResultInactive=no | 31 | ResultInactive=yes |
3497 | 53 | ResultActive=yes | 32 | ResultActive=yes |
3498 | 54 | EOF | 33 | EOF |
3499 | 55 | 34 | ||
3500 | 56 | 35 | ||
3501 | === removed file 'scripts/casper-bottom/45disable_guest_account' | |||
3502 | --- scripts/casper-bottom/45disable_guest_account 2010-01-05 16:54:40 +0000 | |||
3503 | +++ scripts/casper-bottom/45disable_guest_account 1970-01-01 00:00:00 +0000 | |||
3504 | @@ -1,25 +0,0 @@ | |||
3505 | 1 | #!/bin/sh | ||
3506 | 2 | |||
3507 | 3 | PREREQ="" | ||
3508 | 4 | DESCRIPTION="Disabling gdm guest session functionality..." | ||
3509 | 5 | |||
3510 | 6 | prereqs() | ||
3511 | 7 | { | ||
3512 | 8 | echo "$PREREQ" | ||
3513 | 9 | } | ||
3514 | 10 | |||
3515 | 11 | case $1 in | ||
3516 | 12 | # get pre-requisites | ||
3517 | 13 | prereqs) | ||
3518 | 14 | prereqs | ||
3519 | 15 | exit 0 | ||
3520 | 16 | ;; | ||
3521 | 17 | esac | ||
3522 | 18 | |||
3523 | 19 | . /scripts/casper-functions | ||
3524 | 20 | |||
3525 | 21 | log_begin_msg "$DESCRIPTION" | ||
3526 | 22 | |||
3527 | 23 | chroot /root dpkg -P gdm-guest-session || true | ||
3528 | 24 | |||
3529 | 25 | log_end_msg | ||
3530 | 26 | 0 | ||
3531 | === removed file 'scripts/casper-bottom/47unr_ubiquity' | |||
3532 | --- scripts/casper-bottom/47unr_ubiquity 2010-01-05 16:54:40 +0000 | |||
3533 | +++ scripts/casper-bottom/47unr_ubiquity 1970-01-01 00:00:00 +0000 | |||
3534 | @@ -1,39 +0,0 @@ | |||
3535 | 1 | #!/bin/sh | ||
3536 | 2 | |||
3537 | 3 | PREREQ="" | ||
3538 | 4 | DESCRIPTION="Set ubiquity favourite for UNR..." | ||
3539 | 5 | |||
3540 | 6 | prereqs() | ||
3541 | 7 | { | ||
3542 | 8 | echo "$PREREQ" | ||
3543 | 9 | } | ||
3544 | 10 | |||
3545 | 11 | case $1 in | ||
3546 | 12 | # get pre-requisites | ||
3547 | 13 | prereqs) | ||
3548 | 14 | prereqs | ||
3549 | 15 | exit 0 | ||
3550 | 16 | ;; | ||
3551 | 17 | esac | ||
3552 | 18 | |||
3553 | 19 | . /scripts/casper-functions | ||
3554 | 20 | |||
3555 | 21 | log_begin_msg "$DESCRIPTION" | ||
3556 | 22 | |||
3557 | 23 | gconf_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gconf2 2>/dev/null) || gconf_version="" | ||
3558 | 24 | |||
3559 | 25 | gct() { | ||
3560 | 26 | if [ "$gconf_version" ]; then | ||
3561 | 27 | chroot /root sudo -u "$USERNAME" gconftool-2 "$@" | ||
3562 | 28 | fi | ||
3563 | 29 | } | ||
3564 | 30 | |||
3565 | 31 | if ! gct -g /apps/netbook-launcher/favorites/favorites_list | grep -q ubiquity; then | ||
3566 | 32 | gct -s -t string /apps/netbook-launcher/favorites/ubiquity/type application | ||
3567 | 33 | gct -s -t string /apps/netbook-launcher/favorites/ubiquity/desktop_file /usr/share/applications/ubiquity-gtkui.desktop | ||
3568 | 34 | favs=$(gct -g /apps/netbook-launcher/favorites/favorites_list) | ||
3569 | 35 | gct -s -t list --list-type=string /apps/netbook-launcher/favorites/favorites_list $(echo "$favs" | sed -e 's/]$/,ubiquity]/') | ||
3570 | 36 | fi | ||
3571 | 37 | |||
3572 | 38 | log_end_msg | ||
3573 | 39 | |||
3574 | 40 | 0 | ||
3575 | === removed file 'scripts/casper-bottom/48enable_kubuntu_netbook' | |||
3576 | --- scripts/casper-bottom/48enable_kubuntu_netbook 2010-01-27 13:56:03 +0000 | |||
3577 | +++ scripts/casper-bottom/48enable_kubuntu_netbook 1970-01-01 00:00:00 +0000 | |||
3578 | @@ -1,27 +0,0 @@ | |||
3579 | 1 | #! /bin/sh | ||
3580 | 2 | |||
3581 | 3 | PREREQ="" | ||
3582 | 4 | DESCRIPTION="Enabling Plasma Netbook workspace if appropriate..." | ||
3583 | 5 | |||
3584 | 6 | prereqs() | ||
3585 | 7 | { | ||
3586 | 8 | echo "$PREREQ" | ||
3587 | 9 | } | ||
3588 | 10 | |||
3589 | 11 | case $1 in | ||
3590 | 12 | # get pre-requisites | ||
3591 | 13 | prereqs) | ||
3592 | 14 | prereqs | ||
3593 | 15 | exit 0 | ||
3594 | 16 | ;; | ||
3595 | 17 | esac | ||
3596 | 18 | |||
3597 | 19 | . /scripts/casper-functions | ||
3598 | 20 | |||
3599 | 21 | log_begin_msg "$DESCRIPTION" | ||
3600 | 22 | |||
3601 | 23 | if [ -e "/root/usr/share/autostart/plasma-netbook.desktop" ]; then | ||
3602 | 24 | sed -i "s,Hidden=true,," /root/usr/share/autostart/plasma-netbook.desktop | ||
3603 | 25 | fi | ||
3604 | 26 | |||
3605 | 27 | log_end_msg | ||
3606 | 28 | 0 | ||
3607 | === added file 'scripts/casper-bottom/48kubuntu_disable_restart_notifications' | |||
3608 | --- scripts/casper-bottom/48kubuntu_disable_restart_notifications 1970-01-01 00:00:00 +0000 | |||
3609 | +++ scripts/casper-bottom/48kubuntu_disable_restart_notifications 2011-10-06 10:04:28 +0000 | |||
3610 | @@ -0,0 +1,5 @@ | |||
3611 | 1 | #! /bin/sh | ||
3612 | 2 | |||
3613 | 3 | if [ -d /root/usr/share/kubuntu-default-settings/ ]; then | ||
3614 | 4 | echo "[Event]\nhideRestartNotifier=true" >> /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config/notificationhelper | ||
3615 | 5 | fi | ||
3616 | 0 | 6 | ||
3617 | === added file 'scripts/casper-bottom/49kubuntu_mobile_session' | |||
3618 | --- scripts/casper-bottom/49kubuntu_mobile_session 1970-01-01 00:00:00 +0000 | |||
3619 | +++ scripts/casper-bottom/49kubuntu_mobile_session 2011-10-06 10:04:28 +0000 | |||
3620 | @@ -0,0 +1,5 @@ | |||
3621 | 1 | #! /bin/sh | ||
3622 | 2 | |||
3623 | 3 | if [ -d /root/usr/share/kubuntu-mobile-default-settings/ ]; then | ||
3624 | 4 | cp /root/usr/share/kubuntu-mobile-default-settings/share/nodm /root/etc/default/nodm | ||
3625 | 5 | fi | ||
3626 | 0 | 6 | ||
3627 | === modified file 'scripts/casper-functions' | |||
3628 | --- scripts/casper-functions 2008-09-18 23:39:20 +0000 | |||
3629 | +++ scripts/casper-functions 2011-10-06 10:04:28 +0000 | |||
3630 | @@ -4,7 +4,10 @@ | |||
3631 | 4 | # Print a message and wait for enter | 4 | # Print a message and wait for enter |
3632 | 5 | log_wait_msg() | 5 | log_wait_msg() |
3633 | 6 | { | 6 | { |
3635 | 7 | if [ -x /sbin/usplash_write ]; then | 7 | if [ -x /bin/plymouth ] && plymouth --ping; then |
3636 | 8 | plymouth message --text="$@" | ||
3637 | 9 | plymouth watch-keystroke | read nunya | ||
3638 | 10 | elif [ -x /sbin/usplash_write ]; then | ||
3639 | 8 | /sbin/usplash_write "INPUTENTER $@" | 11 | /sbin/usplash_write "INPUTENTER $@" |
3640 | 9 | read nunya < /dev/.initramfs/usplash_outfifo | 12 | read nunya < /dev/.initramfs/usplash_outfifo |
3641 | 10 | fi | 13 | fi |
3642 | @@ -39,3 +42,14 @@ | |||
3643 | 39 | echo "C" | 42 | echo "C" |
3644 | 40 | fi | 43 | fi |
3645 | 41 | } | 44 | } |
3646 | 45 | |||
3647 | 46 | load_confmodule() { | ||
3648 | 47 | # Only do this once. | ||
3649 | 48 | if [ -z "$DEBCONF_REDIR" ]; then | ||
3650 | 49 | exec <&4 | ||
3651 | 50 | export DEBIAN_HAS_FRONTEND=1 | ||
3652 | 51 | export DEBCONF_REDIR=1 | ||
3653 | 52 | fi | ||
3654 | 53 | |||
3655 | 54 | . /root/usr/share/debconf/confmodule | ||
3656 | 55 | } | ||
3657 | 42 | 56 | ||
3658 | === modified file 'scripts/casper-helpers' | |||
3659 | --- scripts/casper-helpers 2009-05-12 12:30:01 +0000 | |||
3660 | +++ scripts/casper-helpers 2011-10-06 10:04:28 +0000 | |||
3661 | @@ -31,7 +31,7 @@ | |||
3662 | 31 | # FIXME: do something better like the scan of supported filesystems | 31 | # FIXME: do something better like the scan of supported filesystems |
3663 | 32 | fstype="${1}" | 32 | fstype="${1}" |
3664 | 33 | case ${fstype} in | 33 | case ${fstype} in |
3666 | 34 | vfat|iso9660|udf|ext2|ext3|ext4|ntfs) | 34 | vfat|iso9660|udf|ext2|ext3|ext4|btrfs|ntfs) |
3667 | 35 | return 0 | 35 | return 0 |
3668 | 36 | ;; | 36 | ;; |
3669 | 37 | esac | 37 | esac |
3670 | @@ -164,6 +164,9 @@ | |||
3671 | 164 | fi | 164 | fi |
3672 | 165 | } | 165 | } |
3673 | 166 | 166 | ||
3674 | 167 | # Returns 0 on success | ||
3675 | 168 | # panics if remount- or bind-mount fails | ||
3676 | 169 | # returns 1 on failure otherwise | ||
3677 | 167 | try_mount () | 170 | try_mount () |
3678 | 168 | { | 171 | { |
3679 | 169 | dev="${1}" | 172 | dev="${1}" |
3680 | @@ -171,19 +174,39 @@ | |||
3681 | 171 | opts="${3}" | 174 | opts="${3}" |
3682 | 172 | 175 | ||
3683 | 173 | if where_is_mounted ${dev} > /dev/null; then | 176 | if where_is_mounted ${dev} > /dev/null; then |
3687 | 174 | if [ "${opts}" != "ro" ]; then | 177 | if [ "${opts}" != "ro" ]; then |
3688 | 175 | mount -o remount,"${opts}" ${dev} $(where_is_mounted ${dev}) || panic "Remounting failed" | 178 | mount -o remount,"${opts}" ${dev} $(where_is_mounted ${dev}) || panic "Remounting failed" |
3689 | 176 | fi | 179 | return 0 |
3690 | 180 | fi | ||
3691 | 177 | mount -o bind $(where_is_mounted ${dev}) ${mountp} || panic "Cannot bind-mount" | 181 | mount -o bind $(where_is_mounted ${dev}) ${mountp} || panic "Cannot bind-mount" |
3692 | 182 | return 0 | ||
3693 | 178 | else | 183 | else |
3695 | 179 | mount -t $(get_fstype "${dev}") -o "${opts}" "${dev}" "${mountp}" || panic "Cannot mount ${dev} on ${mountp}" | 184 | mount -t $(get_fstype "${dev}") -o "${opts}" "${dev}" "${mountp}" |
3696 | 185 | ret=$? | ||
3697 | 186 | if [ $ret -ne 0 ]; then | ||
3698 | 187 | log_warning_msg "Cannot mount ${dev} on ${mountp}" | ||
3699 | 188 | return 1 | ||
3700 | 189 | fi | ||
3701 | 190 | return 0 | ||
3702 | 180 | fi | 191 | fi |
3703 | 181 | } | 192 | } |
3704 | 182 | 193 | ||
3705 | 183 | find_cow_device() { | 194 | find_cow_device() { |
3706 | 184 | pers_label="${1}" | 195 | pers_label="${1}" |
3707 | 185 | cow_backing="/${pers_label}-backing" | 196 | cow_backing="/${pers_label}-backing" |
3708 | 197 | |||
3709 | 198 | if [ -z "${PERSISTENT_PATH}" ]; then | ||
3710 | 199 | pers_fpath=${pers_label} | ||
3711 | 200 | else | ||
3712 | 201 | pers_fpath=${PERSISTENT_PATH}/${pers_label} | ||
3713 | 202 | fi | ||
3714 | 203 | |||
3715 | 186 | for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop); do | 204 | for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop); do |
3716 | 205 | # do not ever probe floppies, probing nonexistant ones delays the boot to half an hour and longer | ||
3717 | 206 | n=${sysblock##*/} | ||
3718 | 207 | if [ "${n#fd}" != "$n" ]; then | ||
3719 | 208 | continue | ||
3720 | 209 | fi | ||
3721 | 187 | for dev in $(subdevices "${sysblock}"); do | 210 | for dev in $(subdevices "${sysblock}"); do |
3722 | 188 | devname=$(sys2dev "${dev}") | 211 | devname=$(sys2dev "${dev}") |
3723 | 189 | if [ "$(/sbin/blkid -s LABEL -o value $devname 2>/dev/null)" = "${pers_label}" ]; then | 212 | if [ "$(/sbin/blkid -s LABEL -o value $devname 2>/dev/null)" = "${pers_label}" ]; then |
3724 | @@ -195,12 +218,13 @@ | |||
3725 | 195 | # where filesystems are in use by hibernated operating systems. | 218 | # where filesystems are in use by hibernated operating systems. |
3726 | 196 | elif [ "$(get_fstype ${devname})" = "vfat" ]; then | 219 | elif [ "$(get_fstype ${devname})" = "vfat" ]; then |
3727 | 197 | mkdir -p "${cow_backing}" | 220 | mkdir -p "${cow_backing}" |
3731 | 198 | try_mount "${devname}" "${cow_backing}" "rw" | 221 | try_mount "${devname}" "${cow_backing}" "rw" || continue |
3732 | 199 | if [ -e "${cow_backing}/${pers_label}" ]; then | 222 | cow_backing_mp=$(where_is_mounted "${devname}") |
3733 | 200 | echo $(setup_loop "${cow_backing}/${pers_label}" "loop" "/sys/block/loop*") | 223 | if [ -e "${cow_backing_mp}/${pers_fpath}" ]; then |
3734 | 224 | echo $(setup_loop "${cow_backing_mp}/${pers_fpath}" "loop" "/sys/block/loop*") | ||
3735 | 201 | return 0 | 225 | return 0 |
3736 | 202 | else | 226 | else |
3738 | 203 | umount ${cow_backing} | 227 | umount ${cow_backing_mp} |
3739 | 204 | fi | 228 | fi |
3740 | 205 | fi | 229 | fi |
3741 | 206 | done | 230 | done |
3742 | @@ -219,7 +243,7 @@ | |||
3743 | 219 | devfstype="$(get_fstype ${devname})" | 243 | devfstype="$(get_fstype ${devname})" |
3744 | 220 | if [ "${devfstype}" = "vfat" ] || [ "${devfstype}" = "ext2" ] ; then # FIXME: all supported block devices should be scanned | 244 | if [ "${devfstype}" = "vfat" ] || [ "${devfstype}" = "ext2" ] ; then # FIXME: all supported block devices should be scanned |
3745 | 221 | mkdir -p "${snap_backing}" | 245 | mkdir -p "${snap_backing}" |
3747 | 222 | try_mount "${devname}" "${snap_backing}" "ro" | 246 | try_mount "${devname}" "${snap_backing}" "ro" || continue |
3748 | 223 | for filename in ${filenames}; do | 247 | for filename in ${filenames}; do |
3749 | 224 | if [ -e "${snap_backing}/${filename}" ]; then | 248 | if [ -e "${snap_backing}/${filename}" ]; then |
3750 | 225 | echo "${devname} ${snap_backing} ${filename}" | 249 | echo "${devname} ${snap_backing} ${filename}" |
3751 | 226 | 250 | ||
3752 | === modified file 'scripts/casper-premount/10driver_updates' | |||
3753 | --- scripts/casper-premount/10driver_updates 2010-01-05 16:54:40 +0000 | |||
3754 | +++ scripts/casper-premount/10driver_updates 2011-10-06 10:04:28 +0000 | |||
3755 | @@ -42,7 +42,7 @@ | |||
3756 | 42 | 42 | ||
3757 | 43 | is_nice_device() { | 43 | is_nice_device() { |
3758 | 44 | sysfs_path="${1#/sys}" | 44 | sysfs_path="${1#/sys}" |
3760 | 45 | if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb))"; then | 45 | if /lib/udev/path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb))"; then |
3761 | 46 | return 0 | 46 | return 0 |
3762 | 47 | fi | 47 | fi |
3763 | 48 | return 1 | 48 | return 1 |
3764 | 49 | 49 | ||
3765 | === modified file 'ubiquity-hooks/30accessibility' | |||
3766 | --- ubiquity-hooks/30accessibility 2009-10-13 21:25:53 +0000 | |||
3767 | +++ ubiquity-hooks/30accessibility 2011-10-06 10:04:28 +0000 | |||
3768 | @@ -1,5 +1,6 @@ | |||
3769 | 1 | #!/bin/sh | 1 | #!/bin/sh |
3771 | 2 | # If you change this, please also change the copy in scripts/casper-bottom/30accessibility. | 2 | # If you are looking to change accessibility profile settings, plesae look in |
3772 | 3 | # bin/casper-a11y-enable. | ||
3773 | 3 | 4 | ||
3774 | 4 | . /usr/share/debconf/confmodule | 5 | . /usr/share/debconf/confmodule |
3775 | 5 | . /etc/casper.conf | 6 | . /etc/casper.conf |
3776 | @@ -9,171 +10,83 @@ | |||
3777 | 9 | db_get passwd/username | 10 | db_get passwd/username |
3778 | 10 | TARGET_USERNAME="$RET" | 11 | TARGET_USERNAME="$RET" |
3779 | 11 | 12 | ||
3795 | 12 | gct() { | 13 | copy_orca_config() |
3781 | 13 | chroot /target sudo -u "$TARGET_USERNAME" gconftool-2 "$@" | ||
3782 | 14 | } | ||
3783 | 15 | |||
3784 | 16 | kderc_addtoprefixes() { | ||
3785 | 17 | if [ -e "/target/etc/kde4rc" ]; then | ||
3786 | 18 | sed -i "s|\\(prefixes=/usr/share/kubuntu-default-settings/kde-profile/default/\\)|\\1,$1|" /target/etc/kde4rc | ||
3787 | 19 | fi | ||
3788 | 20 | } | ||
3789 | 21 | |||
3790 | 22 | # Code to remove an applet from the default panel setup | ||
3791 | 23 | # This is rather hacky, but I can't think of a one or two line regular | ||
3792 | 24 | # expression to do this any more efficiently. Patches welcome. | ||
3793 | 25 | # In addition, setting these via gconf also doesn't work for some reason. | ||
3794 | 26 | remove_applet() | ||
3796 | 27 | { | 14 | { |
3805 | 28 | local line_no prior_line next_line | 15 | if [ -f /home/$USERNAME/.local/share/orca/user-settings.conf ]; then |
3806 | 29 | 16 | mkdir -p /target/home/$TARGET_USERNAME/.local/share | |
3807 | 30 | line_no=$(grep -n "<string>$1</string>" /target/usr/share/gconf/defaults/05_panel-default-setup.entries | cut -f 1 -d :) | 17 | cp -r /home/$USERNAME/.local/share/orca /target/home/$TARGET_USERNAME/.local/share |
3808 | 31 | [ "$line_no" ] || return | 18 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.local |
3809 | 32 | prior_line=$((line_no-1)) | 19 | chmod 755 /target/home/$TARGET_USERNAME/.local/share/orca |
3810 | 33 | next_line=$((line_no+1)) | 20 | fi |
3803 | 34 | sed -i -n "${prior_line},${next_line}!p" /target/usr/share/gconf/defaults/05_panel-default-setup.entries | ||
3804 | 35 | chroot /target update-gconf-defaults | ||
3811 | 36 | } | 21 | } |
3812 | 37 | 22 | ||
3813 | 38 | for x in $(cat /proc/cmdline); do | 23 | for x in $(cat /proc/cmdline); do |
3952 | 39 | case $x in | 24 | case $x in |
3953 | 40 | # Lesser Visual Impairment | 25 | # Lesser Visual Impairment |
3954 | 41 | access=v1) | 26 | access=v1) |
3955 | 42 | gct -s -t string /desktop/gnome/interface/gtk_theme HighContrastLargePrint | 27 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script high-contrast |
3956 | 43 | gct -s -t string /desktop/gnome/interface/icon_theme HighContrast | 28 | exit |
3957 | 44 | gct -s -t string /desktop/gnome/interface/monospace_font_name "monospace 18" | 29 | ;; |
3958 | 45 | gct -s -t string /desktop/gnome/interface/font_name "sans 18" | 30 | # Moderate Visual Impairment |
3959 | 46 | gct -s -t string /apps/metacity/general/theme Atlanta | 31 | access=v2) |
3960 | 47 | gct -s -t string /desktop/gnome/background/picture_filename "" | 32 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script magnifier |
3961 | 48 | gct -s -t string /desktop/gnome/background/picture_options none | 33 | exit |
3962 | 49 | gct -s -t string /desktop/gnome/background/primary_color \#666666 | 34 | ;; |
3963 | 50 | gct -s -t string /desktop/gnome/background/secondary_color \#7F7F7F | 35 | # Blindness |
3964 | 51 | gct -s -t string /desktop/gnome/background/color_shading_type solid | 36 | access=v3) |
3965 | 52 | gct -s -t int /desktop/gnome/peripherals/mouse/cursor_size 48 | 37 | copy_orca_config |
3966 | 53 | gct -s -t string /desktop/gnome/peripherals/mouse/cursor_theme whiteglass | 38 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script blindness |
3967 | 54 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/ | 39 | exit |
3968 | 55 | if [ -d /target/usr/share/xubuntu-default-settings/accessibility ]; then | 40 | ;; |
3969 | 56 | cp -a /target/usr/share/xubuntu-default-settings/accessibility/* /target/etc/xdg/ | 41 | # Braille |
3970 | 57 | fi | 42 | braille=ask) |
3971 | 58 | ;; | 43 | copy_orca_config |
3972 | 59 | # Moderate Visual Impairment | 44 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script braille |
3973 | 60 | access=v2) | 45 | exit |
3974 | 61 | gct -s -t bool /desktop/gnome/interface/accessibility true | 46 | ;; |
3975 | 62 | gct -s -t bool /apps/gksu/disable-grab true | 47 | # Minor Motor Difficulties |
3976 | 63 | gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity | 48 | access=m1) |
3977 | 64 | gct -s -t bool /desktop/gnome/applications/at/visual/startup true | 49 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script keyboard-modifiers |
3978 | 65 | gct -s -t string /desktop/gnome/applications/at/visual/exec orca | 50 | exit |
3979 | 66 | 51 | ;; | |
3980 | 67 | if [ -d /usr/share/xubuntu-default-settings ]; then | 52 | # Motor Difficulties - pointing devices |
3981 | 68 | apt-install gnome-orca gnome-mag | 53 | access=m2) |
3982 | 69 | fi | 54 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script onscreen-keyboard |
3983 | 70 | 55 | exit | |
3846 | 71 | if [ -x /target/usr/bin/orca ]; then | ||
3847 | 72 | if [ -f /home/$USERNAME/.orca/user-settings.py ]; then | ||
3848 | 73 | cp -r /home/$USERNAME/.orca /target/home/$TARGET_USERNAME/ | ||
3849 | 74 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.orca | ||
3850 | 75 | else | ||
3851 | 76 | mkdir -p /target/home/$TARGET_USERNAME/.orca | ||
3852 | 77 | echo "import orca.settings" >> /target/home/$TARGET_USERNAME/.orca/user-settings.py | ||
3853 | 78 | echo "orca.settings.enableSpeech = True" >> /target/home/$TARGET_USERNAME/.orca/user-settings.py | ||
3854 | 79 | echo "orca.settings.enableMagnifier = True" >> /target/home/$TARGET_USERNAME/.orca/user-settings.py | ||
3855 | 80 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.orca | ||
3856 | 81 | fi | ||
3857 | 82 | fi | ||
3858 | 83 | sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /target/etc/sudoers | ||
3859 | 84 | |||
3860 | 85 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/,/usr/share/kubuntu-default-settings/kde-profile/moderate-visual-impairment/ | ||
3861 | 86 | ;; | ||
3862 | 87 | # Blindness | ||
3863 | 88 | access=v3) | ||
3864 | 89 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
3865 | 90 | gct -s -t bool /apps/gksu/disable-grab true | ||
3866 | 91 | gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity | ||
3867 | 92 | gct -s -t bool /desktop/gnome/applications/at/visual/startup true | ||
3868 | 93 | gct -s -t string /desktop/gnome/applications/at/visual/exec orca | ||
3869 | 94 | remove_applet fast_user_switch | ||
3870 | 95 | if [ -x /target/usr/bin/pulse-session ]; then | ||
3871 | 96 | mkdir -p /target/var/lib/pulseaudio | ||
3872 | 97 | touch /target/var/lib/pulseaudio/pulse_a11y_nostart | ||
3873 | 98 | chroot /target chown root.root /var/lib/pulseaudio/pulse_a11y_nostart | ||
3874 | 99 | mkdir -p /target/home/$TARGET_USERNAME/.pulse | ||
3875 | 100 | echo "autospawn = no" > /target/home/$TARGET_USERNAME/.pulse/client.conf | ||
3876 | 101 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.pulse | ||
3877 | 102 | fi | ||
3878 | 103 | sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /target/etc/sudoers | ||
3879 | 104 | if [ -x /target/usr/bin/orca ]; then | ||
3880 | 105 | if [ -f /home/$USERNAME/.orca/user-settings.py ]; then | ||
3881 | 106 | cp -r /home/$USERNAME/.orca /target/home/$TARGET_USERNAME/ | ||
3882 | 107 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.orca | ||
3883 | 108 | else | ||
3884 | 109 | mkdir -p /target/home/$TARGET_USERNAME/.orca | ||
3885 | 110 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.orca | ||
3886 | 111 | fi | ||
3887 | 112 | fi | ||
3888 | 113 | |||
3889 | 114 | if [ -d /usr/share/xubuntu-default-settings ]; then | ||
3890 | 115 | apt-install gnome-orca | ||
3891 | 116 | fi | ||
3892 | 117 | ;; | ||
3893 | 118 | # Braille | ||
3894 | 119 | braille=ask) | ||
3895 | 120 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
3896 | 121 | gct -s -t bool /desktop/gnome/applications/at/visual/startup true | ||
3897 | 122 | gct -s -t string /desktop/gnome/applications/at/visual/exec orca | ||
3898 | 123 | if [ -x /target/usr/bin/orca ]; then | ||
3899 | 124 | if [ -f /home/$USERNAME/.orca/user-settings.py ]; then | ||
3900 | 125 | cp -r /home/$USERNAME/.orca /target/home/$TARGET_USERNAME/ | ||
3901 | 126 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.orca | ||
3902 | 127 | else | ||
3903 | 128 | mkdir -p /target/home/$TARGET_USERNAME/.orca | ||
3904 | 129 | echo "import orca.settings" >> /target/home/$TARGET_USERNAME/.orca/user-settings.py | ||
3905 | 130 | echo "orca.settings.enableSpeech = False" >> /target/home/$TARGET_USERNAME/.orca/user-settings.py | ||
3906 | 131 | echo "orca.settings.enableBraille = True" >> /target/home/$TARGET_USERNAME/.orca/user-settings.py | ||
3907 | 132 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.orca | ||
3908 | 133 | fi | ||
3909 | 134 | fi | ||
3910 | 135 | gct -s -t bool /apps/gksu/disable-grab true | ||
3911 | 136 | gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity | ||
3912 | 137 | remove_applet fast_user_switch | ||
3913 | 138 | sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /target/etc/sudoers | ||
3914 | 139 | if [ -x /target/usr/bin/pulse-session ]; then | ||
3915 | 140 | mkdir -p /target/var/lib/pulseaudio | ||
3916 | 141 | touch /target/var/lib/pulseaudio/pulse_a11y_nostart | ||
3917 | 142 | chroot /target chown root.root /var/lib/pulseaudio/pulse_a11y_nostart | ||
3918 | 143 | mkdir -p /target/home/$TARGET_USERNAME/.pulse | ||
3919 | 144 | echo "autospawn = no" > /target/home/$TARGET_USERNAME/.pulse/client.conf | ||
3920 | 145 | chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.pulse | ||
3921 | 146 | fi | ||
3922 | 147 | ;; | ||
3923 | 148 | # Minor Motor Difficulties | ||
3924 | 149 | access=m1) | ||
3925 | 150 | gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true | ||
3926 | 151 | gct -s -t bool /desktop/gnome/accessibility/keyboard/mousekeys_enable true | ||
3927 | 152 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true | ||
3928 | 153 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep true | ||
3929 | 154 | gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false | ||
3930 | 155 | gct -s -t bool /desktop/gnome/peripherals/keyboard/repeat true | ||
3931 | 156 | gct -s -t int /desktop/gnome/peripherals/keyboard/delay 700 | ||
3932 | 157 | gct -s -t int /desktop/gnome/peripherals/keyboard/rate 10 | ||
3933 | 158 | gct -s -t bool /apps/gksu/disable-grab true | ||
3934 | 159 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/ | ||
3935 | 160 | if [ -e /target/etc/xdg/xfce4/mcs_settings/keyboard.xml ]; then | ||
3936 | 161 | sed -i 's/0/1/' /target/etc/xdg/xfce4/mcs_settings/keyboard.xml | ||
3937 | 162 | fi | ||
3938 | 163 | ;; | ||
3939 | 164 | # Motor Difficulties - pointing devices | ||
3940 | 165 | access=m2) | ||
3941 | 166 | gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true | ||
3942 | 167 | gct -s -t bool /desktop/gnome/interface/accessibility true | ||
3943 | 168 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true | ||
3944 | 169 | gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep false | ||
3945 | 170 | gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false | ||
3946 | 171 | gct -s -t bool /desktop/gnome/applications/at/mobility/startup true | ||
3947 | 172 | gct -s -t string /desktop/gnome/applications/at/mobility/exec onboard | ||
3948 | 173 | kderc_addtoprefixes /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/,/usr/share/kubuntu-default-settings/kde-profile/motor-difficulties-pointing-devices/ | ||
3949 | 174 | if [ -e /target/etc/xdg/xfce4/mcs_settings/keyboard.xml ]; then | ||
3950 | 175 | sed -i '/Sticky/ s/0/1/' /target/etc/xdg/xfce4/mcs_settings/keyboard.xml | ||
3951 | 176 | fi | ||
3984 | 177 | ;; | 56 | ;; |
3985 | 178 | esac | 57 | esac |
3986 | 179 | done | 58 | done |
3987 | 59 | |||
3988 | 60 | if [ -z "$UBIQUITY_A11Y_PROFILE" ] && [ -f /tmp/casper-a11y.conf ]; then | ||
3989 | 61 | . /tmp/casper-a11y.conf | ||
3990 | 62 | fi | ||
3991 | 63 | |||
3992 | 64 | case "$UBIQUITY_A11Y_PROFILE" in | ||
3993 | 65 | # Lesser Visual Impairment | ||
3994 | 66 | high-contrast) | ||
3995 | 67 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script high-contrast | ||
3996 | 68 | ;; | ||
3997 | 69 | # Moderate Visual Impairment | ||
3998 | 70 | magnifier) | ||
3999 | 71 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script magnifier | ||
4000 | 72 | ;; | ||
4001 | 73 | # Blindness | ||
4002 | 74 | screen-reader) | ||
4003 | 75 | copy_orca_config | ||
4004 | 76 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script blindness | ||
4005 | 77 | ;; | ||
4006 | 78 | # Braille | ||
4007 | 79 | braille) | ||
4008 | 80 | copy_orca_config | ||
4009 | 81 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script braille | ||
4010 | 82 | ;; | ||
4011 | 83 | # Minor Motor Difficulties | ||
4012 | 84 | keyboard-modifiers) | ||
4013 | 85 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script keyboard-modifiers | ||
4014 | 86 | ;; | ||
4015 | 87 | # Motor Difficulties - pointing devices | ||
4016 | 88 | onscreen-keyboard) | ||
4017 | 89 | /usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script onscreen-keyboard | ||
4018 | 90 | ;; | ||
4019 | 91 | esac | ||
4020 | 92 | |||
4021 | 180 | 93 | ||
4022 | === removed file 'ubiquity-hooks/48enable_kubuntu_netbook' | |||
4023 | --- ubiquity-hooks/48enable_kubuntu_netbook 2010-01-27 14:01:22 +0000 | |||
4024 | +++ ubiquity-hooks/48enable_kubuntu_netbook 1970-01-01 00:00:00 +0000 | |||
4025 | @@ -1,8 +0,0 @@ | |||
4026 | 1 | #! /bin/sh | ||
4027 | 2 | set -e | ||
4028 | 3 | |||
4029 | 4 | if [ -e "/target/usr/share/autostart/plasma-netbook.desktop" ]; then | ||
4030 | 5 | sed -i "s,Hidden=true,," /target/usr/share/autostart/plasma-netbook.desktop | ||
4031 | 6 | fi | ||
4032 | 7 | |||
4033 | 8 | exit 0 | ||
4034 | 9 | 0 | ||
4035 | === added file 'ubiquity-hooks/49kubuntu_gnome_icon_cache' | |||
4036 | --- ubiquity-hooks/49kubuntu_gnome_icon_cache 1970-01-01 00:00:00 +0000 | |||
4037 | +++ ubiquity-hooks/49kubuntu_gnome_icon_cache 2011-10-06 10:04:28 +0000 | |||
4038 | @@ -0,0 +1,11 @@ | |||
4039 | 1 | #! /bin/sh | ||
4040 | 2 | set -e | ||
4041 | 3 | |||
4042 | 4 | # livecd-rootfs deletes the Gnome icon cache for Kubuntu CDs to save space, recreate it here | ||
4043 | 5 | |||
4044 | 6 | if [ -e "/target/usr/share/kubuntu-default-settings/" ] && [ -e "/target/usr/bin/gtk-update-icon-cache" ]; then | ||
4045 | 7 | chroot /target gtk-update-icon-cache /usr/share/icons/hicolor | ||
4046 | 8 | chroot /target gtk-update-icon-cache /usr/share/icons/oxygen | ||
4047 | 9 | fi | ||
4048 | 10 | |||
4049 | 11 | exit 0 |
Could you please re-propose this for merging into lp:ubuntu/casper
rather than lp:casper, so that we get a useful merge diff? Thanks.