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

Proposed by ben-Nabiy Derush
Status: Merged
Merged at revision: 2502
Proposed branch: lp:~bennabiy/ltsp/ltsp-LinuxMint
Merge into: lp:~ltsp-upstream/ltsp/ltsp-trunk
Diff against target: 59 lines (+23/-3)
3 files modified
common/ltsp-common-functions (+10/-1)
server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration (+10/-2)
server/share/ltsp/plugins/ltsp-build-client/Ubuntu/010-updates-mirrors (+3/-0)
To merge this branch: bzr merge lp:~bennabiy/ltsp/ltsp-LinuxMint
Reviewer Review Type Date Requested Status
Vagrant Cascadian Approve
Review via email: mp+187442@code.launchpad.net

This proposal supersedes a proposal from 2013-09-01.

Description of the change

This branch enables LinuxMint native support in ltsp-build-client. It enables a user of Linux Mint 13 through current (15) to build a client without getting an error. Up until now, if a user of Linux Mint wanted to build a client, they would need to ln -s /usr/share/ltsp/plugins/ltsp-build-client/Ubuntu /usr/share/ltsp/plugins/ltsp-build-client/LinuxMint and then issue the command with a --dist=(Matching Ubuntu distribution ) e.g. ltsp-build-client --dist=precise (If the machine was Linux Mint 13 (LTS) )

As of current, the building of the client is still mainly an Ubuntu client, but with the Mint repositories made available.

To test - Install Linux Mint {13,14,15}, apt-get install ltsp-standalone-server openssh-server as per UbuntuLTSP install. If you immediately build a client, it will say unknown dist (mint dist).

After applying these changes, you could build a client from a stock install of LTSP.

To post a comment you must log in.
Revision history for this message
Vagrant Cascadian (vagrantc) wrote : Posted in a previous version of this proposal

Most plugins seem to be copies of ubuntu plugins, but should rather be symlinks to the appropriate plugins. Some of the plugins should also be reviewed for appropriateness for Mint- the 030-artwork plugin references ubuntu-specific packages. Good start on a proof of concept, though!

review: Needs Fixing
Revision history for this message
Vagrant Cascadian (vagrantc) wrote : Posted in a previous version of this proposal

just remove 030-artwork, and review other symlinks to make sure they're valid for mint, and it looks good.

Revision history for this message
ben-Nabiy Derush (bennabiy) wrote : Posted in a previous version of this proposal

> just remove 030-artwork, and review other symlinks to make sure they're valid
> for mint, and it looks good.

Done. Should be ready as of last push.

lp:~bennabiy/ltsp/ltsp-LinuxMint updated
2491. By ben-Nabiy Derush

Fixed vendor_detect() patch

2492. By ben-Nabiy Derush

Added missing " on line 8

2493. By ben-Nabiy Derush

Patches made according to vagrantc's suggestions.

2494. By ben-Nabiy Derush

Decomplication of 030-artwork
This line and the following will be ignored --------------

modified:
  server/share/ltsp/plugins/ltsp-build-client/Ubuntu/030-artwork

2495. By ben-Nabiy Derush

Whitespace war...

2496. By ben-Nabiy Derush

More changes... Removed whitespace tabs, etc.

2497. By ben-Nabiy Derush

Try again! More whitespace war...

2498. By ben-Nabiy Derush

INDENTured...

2499. By ben-Nabiy Derush

Almost there...

2500. By ben-Nabiy Derush

Is this the one? Updated detect_vendor() and renamed various variables...

2501. By ben-Nabiy Derush

modified:
  server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration

2502. By ben-Nabiy Derush

Typo

Revision history for this message
Vagrant Cascadian (vagrantc) wrote :

This looks good. Will merge it soon.

Revision history for this message
Vagrant Cascadian (vagrantc) wrote :

merged as a single commit and pushed.

review: Approve

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-01-14 20:18:23 +0000
3+++ common/ltsp-common-functions 2013-09-25 21:11:08 +0000
4@@ -101,7 +101,16 @@
5 . /etc/sysconfig/ltspdist
6 echo "$VENDORDEF"
7 else
8- echo $(lsb_release --id --short | tr " " "_")
9+ LSB_VENDOR=$(lsb_release --id --short | tr " " "_")
10+ if [ "$LSB_VENDOR" = LinuxMint ]; then
11+ if [ "$(lsb_release -s -c)" = "debian" ]; then
12+ echo "Debian"
13+ else
14+ echo "Ubuntu"
15+ fi
16+ else
17+ echo "$LSB_VENDOR"
18+ fi
19 fi
20 }
21
22
23=== modified file 'server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration'
24--- server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration 2012-08-02 17:57:00 +0000
25+++ server/share/ltsp/plugins/ltsp-build-client/Ubuntu/000-basic-configuration 2013-09-25 21:11:08 +0000
26@@ -2,9 +2,17 @@
27 configure)
28 ARCH=${ARCH:-"$(dpkg --print-architecture)"}
29 APT_GET_OPTS=${APT_GET_OPTS:-"-y"}
30- DIST=${DIST:-"$(lsb_release -s -c)"}
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 COMPONENTS=${COMPONENTS:-"main restricted universe multiverse"}
42- EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}
43 OVERRIDE_EXPORTS=${OVERRIDE_EXPORTS:-"true"}
44 export DEBIAN_PRIORITY=critical
45 BOOTSTRAP=${BOOTSTRAP:-"debootstrap"}
46
47=== modified file 'server/share/ltsp/plugins/ltsp-build-client/Ubuntu/010-updates-mirrors'
48--- server/share/ltsp/plugins/ltsp-build-client/Ubuntu/010-updates-mirrors 2012-08-02 17:57:00 +0000
49+++ server/share/ltsp/plugins/ltsp-build-client/Ubuntu/010-updates-mirrors 2013-09-25 21:11:08 +0000
50@@ -22,6 +22,9 @@
51 fi
52 ;;
53 after-install)
54+ if [ -n "$MINT_DIST" ]; then
55+ add_mirrors "$MINT_MIRROR $MINT_DIST $MINT_COMPONENTS"
56+ fi
57 add_mirrors "$UPDATES_MIRROR $DIST-updates $COMPONENTS"
58 add_mirrors "$SECURITY_MIRROR $DIST-security $COMPONENTS"
59 ;;

Subscribers

People subscribed via source and target branches