[Bug 290351] Re: live session user and host should be called kubuntu on kubuntu

Stéphane Graber stgraber at stgraber.org
Wed Dec 14 19:46:58 UTC 2011


I just commited a fix for that to the casper packaging branch (as well
as a few other fixes).

I tested the change with Edubuntu, confirmed that the system boots, that
the session properly starts and that the user has sudo access.

Diff below:
=== modified file 'scripts/casper'
--- scripts/casper	2011-12-13 00:11:22 +0000
+++ scripts/casper	2011-12-14 19:38:24 +0000
@@ -684,6 +684,16 @@
 
     log_end_msg
 
+    # Allow to override USERNAME and HOST based on media information
+    if [ -f /cdrom/.disk/info ]; then
+        FLAVOUR="$(cut -d' ' -f1 "/cdrom/.disk/info" 2>/dev/null | tr '[A-Z]' '[a-z]')" || FLAVOUR=
+        if [ -n "$FLAVOUR" ]; then
+            HOST=$FLAVOUR
+            USERNAME=$FLAVOUR
+            export HOST USERNAME
+        fi
+    fi
+
     # unionfs-fuse needs /dev to be bind-mounted for the duration of
     # casper-bottom; udev's init script will take care of things after that
     if [ "${UNIONFS}" = unionfs-fuse ]; then


** Changed in: casper (Ubuntu)
       Status: Triaged => Fix Committed

** Changed in: casper (Ubuntu)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/290351

Title:
  live session user and host should be called kubuntu on kubuntu

Status in “casper” package in Ubuntu:
  Fix Committed

Bug description:
  Kubuntu 8.10 RC

  1. Start up Kubuntu from the live CD.
  2. Click the K button in the bottom left.

  What you see: A menu entitled "User ubuntu on ubuntu".
  What you should see: "kubuntu" used throughout instead of "ubuntu".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/290351/+subscriptions




More information about the foundations-bugs mailing list