Merge lp:~bennabiy/ltsp/ltsp-LM into lp:~ltsp-upstream/ltsp/ltsp-trunk

Proposed by ben-Nabiy Derush
Status: Merged
Merged at revision: 2493
Proposed branch: lp:~bennabiy/ltsp/ltsp-LM
Merge into: lp:~ltsp-upstream/ltsp/ltsp-trunk
Diff against target: 68 lines (+23/-13)
3 files modified
common/ltsp-common-functions (+3/-3)
server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration (+2/-10)
server/share/ltsp/plugins/ltsp-build-client/Ubuntu/001-set-mint-dist (+18/-0)
To merge this branch: bzr merge lp:~bennabiy/ltsp/ltsp-LM
Reviewer Review Type Date Requested Status
Vagrant Cascadian Pending
Review via email: mp+188410@code.launchpad.net

Description of the change

Bug Fix for Initial LinuxMint support

To post a comment you must log in.
lp:~bennabiy/ltsp/ltsp-LM updated
2489. By Launchpad Translations on behalf of ltsp-upstream

Launchpad automatic translations update.

2490. By Launchpad Translations on behalf of ltsp-upstream

Launchpad automatic translations update.

2491. By Vagrant Cascadian

ltsp-localappsd: move call to ltsp-localappsd into a function, reducing code
duplication.

2492. By Vagrant Cascadian

ltsp-localappsd: Only use su if running as a different user,
currently use in ltsp6 prof-of-concept code.

2493. By Vagrant Cascadian

Merge LinuxMint fixes.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'common/ltsp-common-functions'
2--- common/ltsp-common-functions 2013-09-25 22:50:09 +0000
3+++ common/ltsp-common-functions 2013-11-06 01:54:32 +0000
4@@ -101,15 +101,15 @@
5 . /etc/sysconfig/ltspdist
6 echo "$VENDORDEF"
7 else
8- LSB_VENDOR=$(lsb_release --id --short | tr " " "_")
9- if [ "$LSB_VENDOR" = LinuxMint ]; then
10+ lsb_vendor=$(lsb_release --id --short | tr " " "_")
11+ if [ "$lsb_vendor" = LinuxMint ]; then
12 if [ "$(lsb_release -s -c)" = "debian" ]; then
13 echo "Debian"
14 else
15 echo "Ubuntu"
16 fi
17 else
18- echo "$LSB_VENDOR"
19+ echo "$lsb_vendor"
20 fi
21 fi
22 }
23
24=== modified file 'server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration'
25--- server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration 2013-09-25 22:50:09 +0000
26+++ server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration 2013-11-06 01:54:32 +0000
27@@ -2,16 +2,8 @@
28 configure)
29 ARCH=${ARCH:-"$(dpkg --print-architecture)"}
30 APT_GET_OPTS=${APT_GET_OPTS:-"-y"}
31- if [ -n "$MINT_DIST" ] || ( [ "$LSB_VENDOR" = "LinuxMint" ] && [ -z "$DIST" ] ); then
32- MINT_DIST=${MINT_DIST:-"$(lsb_release -s -c)"}
33- DIST=${DIST:-$(sed -n 's/base_codename=//p' "/usr/share/mintsources/$MINT_DIST/mintsources.conf")}
34- MINT_MIRROR=${MINT_MIRROR:-"http://packages.linuxmint.com"}
35- MINT_COMPONENTS=${MINT_COMPONENTS:-"main upstream import"}
36- EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client mint-meta-core"}
37- else
38- DIST=${DIST:-"$(lsb_release -s -c)"}
39- EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}
40- fi
41+ DIST=${DIST:-"$(lsb_release -s -c)"}
42+ EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}
43 COMPONENTS=${COMPONENTS:-"main restricted universe multiverse"}
44 OVERRIDE_EXPORTS=${OVERRIDE_EXPORTS:-"true"}
45 export DEBIAN_PRIORITY=critical
46
47=== added file 'server/share/ltsp/plugins/ltsp-build-client/Ubuntu/001-set-mint-dist'
48--- server/share/ltsp/plugins/ltsp-build-client/Ubuntu/001-set-mint-dist 1970-01-01 00:00:00 +0000
49+++ server/share/ltsp/plugins/ltsp-build-client/Ubuntu/001-set-mint-dist 2013-11-06 01:54:32 +0000
50@@ -0,0 +1,18 @@
51+case "$MODE" in
52+ commandline)
53+ add_option "mint-dist" "`eval_gettext "set the linuxmint distribution to be used for install, defaults to running distribution"`" "regular" "true"
54+ LSB_RELEASE_C="$(lsb_release -s -c)"
55+ LSB_RELEASE_I="$(lsb_release -s -i)"
56+ ;;
57+ configure)
58+ if [ -n "$option_mint_dist_value" ] || [ "$LSB_RELEASE_I" = "LinuxMint" ]; then
59+ APT_KEYS=${APT_KEYS:-"/usr/share/keyrings/linuxmint-keyring.gpg"}
60+ MINT_DIST=${option_mint_dist_value:-"$LSB_RELEASE_C"}
61+ DIST=$(sed -n 's/base_codename=//p' "/usr/share/mintsources/$MINT_DIST/mintsources.conf")
62+ MINT_MIRROR=${MINT_MIRROR:-"http://packages.linuxmint.com"}
63+ MINT_COMPONENTS=${MINT_COMPONENTS:-"main upstream import"}
64+ EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}
65+ LATE_PACKAGES=${LATE_PACKAGES:-"linuxmint-keyring mint-meta-core mint-artwork-common"}
66+ fi
67+ ;;
68+esac

Subscribers

People subscribed via source and target branches