Merge lp:~cyphermox/casper/shutdown into lp:ubuntu/vivid/casper

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 1172
Merged at revision: 1172
Proposed branch: lp:~cyphermox/casper/shutdown
Merge into: lp:ubuntu/vivid/casper
Diff against target: 102 lines (+34/-6)
5 files modified
bin/casper-stop (+6/-4)
debian/casper.service (+3/-2)
debian/changelog (+19/-0)
scripts/casper-bottom/25disable_cdrom.mount (+3/-0)
scripts/casper-bottom/34disable_kde_services (+3/-0)
To merge this branch: bzr merge lp:~cyphermox/casper/shutdown
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+256024@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/casper-stop'
2--- bin/casper-stop 2015-03-26 03:02:27 +0000
3+++ bin/casper-stop 2015-04-13 19:48:18 +0000
4@@ -25,8 +25,10 @@
5 path="$1"
6
7 if [ -d "$path" ]; then
8- find "$path" -type f | xargs cat > /dev/null 2>&1
9- elif [ -f "$path" ]; then
10+ for f in $(find "$path" -type f); do
11+ cache_path "$f"
12+ done
13+ elif [ -f "$path" ] && [ ! -L "$path" ]; then
14 if [ -x "$path" ]; then
15 if file -L "$path" | grep -q 'dynamically linked'; then
16 for lib in $(ldd "$path" | awk '{ print $3 }'); do
17@@ -34,7 +36,7 @@
18 done
19 fi
20 fi
21- cat "$path" >/dev/null 2>&1
22+ echo -n >> "$path"
23 fi
24 }
25
26@@ -73,7 +75,7 @@
27 prompt=
28 fi
29
30- for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty) /bin/plymouth; do
31+ for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty) /bin/plymouth /lib/plymouth /lib/*/plymouth /lib/systemd /etc/systemd /lib/*/libnss_files* /etc/nsswitch.conf /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf /etc/fonts/fonts.conf /etc/fonts/conf.d/60-latin.conf; do
32 cache_path "$path"
33 done
34
35
36=== modified file 'debian/casper.service'
37--- debian/casper.service 2015-03-26 03:02:27 +0000
38+++ debian/casper.service 2015-04-13 19:48:18 +0000
39@@ -1,11 +1,12 @@
40 [Unit]
41 Description=Shuts down the "live" preinstalled system cleanly
42 DefaultDependencies=no
43-Before=shutdown.target
44+Before=final.target
45+After=shutdown.target umount.target
46
47 [Service]
48 Type=oneshot
49 ExecStart=/sbin/casper-stop
50
51 [Install]
52-WantedBy=shutdown.target
53+WantedBy=final.target
54
55=== modified file 'debian/changelog'
56--- debian/changelog 2015-03-27 11:03:03 +0000
57+++ debian/changelog 2015-04-13 19:48:18 +0000
58@@ -1,3 +1,22 @@
59+casper (1.359) UNRELEASED; urgency=medium
60+
61+ * Do a better job at caching files we might need for plymouth and systemd
62+ on shutdown. (LP: #1436656)
63+ * debian/casper.service: Order the casper service just before final.target
64+ so it's running at a better point in time on shutdown.
65+ * scripts/casper-bottom/25disable_cdrom.mount: mask the cdrom.mount task,
66+ so it doesn't unncessarily spin trying to unmount the cdrom, which casper
67+ will do. (LP: #1436715)
68+
69+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 13 Apr 2015 09:56:23 -0500
70+
71+casper (1.358) vivid; urgency=medium
72+
73+ * In 34disable_kde_services disable kubuntu-notification-helper and
74+ muon notifications on live system
75+
76+ -- Jonathan Riddell <jriddell@ubuntu.com> Thu, 02 Apr 2015 15:09:31 +0200
77+
78 casper (1.357) vivid; urgency=medium
79
80 * Adjust screenlocker disabling for Kubuntu with Plasma 5.3 the locking
81
82=== added file 'scripts/casper-bottom/25disable_cdrom.mount'
83--- scripts/casper-bottom/25disable_cdrom.mount 1970-01-01 00:00:00 +0000
84+++ scripts/casper-bottom/25disable_cdrom.mount 2015-04-13 19:48:18 +0000
85@@ -0,0 +1,3 @@
86+#!/bin/sh
87+
88+ln -s /dev/null /root/lib/systemd/system/cdrom.mount
89
90=== modified file 'scripts/casper-bottom/34disable_kde_services'
91--- scripts/casper-bottom/34disable_kde_services 2015-03-27 11:03:03 +0000
92+++ scripts/casper-bottom/34disable_kde_services 2015-04-13 19:48:18 +0000
93@@ -39,6 +39,9 @@
94 if [ -d /root/usr/share/kubuntu-default-settings/kf5-settings/ ]; then
95 printf "[Daemon]\nTimeout=0\nAutolock=false\n" >> /root/usr/share/kubuntu-default-settings/kf5-settings/kscreenlockerrc
96 printf "[Basic Settings]\nIndexing-Enabled=false\n" >> /root/usr/share/kubuntu-default-settings/kf5-settings/baloofilerc
97+ printf "[Module-notificationhelper]\nautoload=false\n" >> /root/usr/share/kubuntu-default-settings/kf5-settings/kded5rc
98+ printf "[Event/Update]\nAction=\n" >> /root/usr/share/kubuntu-default-settings/kf5-settings/muonabstractnotifier.notifyrc
99+ printf "[Event/Update]\nAction=\n" >> /root/usr/share/kubuntu-default-settings/kf5-settings/muonapplicationnotifier.notifyrc
100 fi
101
102 log_end_msg

Subscribers

People subscribed via source and target branches