mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-09 09:02:11 +00:00
[r=cjwatson] ubuntu-core: Run setup hooks as done for ubuntu-touch.
This commit is contained in:
commit
f764b07ebf
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,8 +1,12 @@
|
|||||||
livecd-rootfs (2.233) UNRELEASED; urgency=medium
|
livecd-rootfs (2.233) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
[ Colin Watson ]
|
||||||
* live-build/auto/config: Add configuration for new kubuntu-plasma5
|
* live-build/auto/config: Add configuration for new kubuntu-plasma5
|
||||||
flavour.
|
flavour.
|
||||||
|
|
||||||
|
[ James Hunt ]
|
||||||
|
* ubuntu-core: Run setup hooks as done for ubuntu-touch.
|
||||||
|
|
||||||
-- Colin Watson <cjwatson@ubuntu.com> Thu, 31 Jul 2014 10:27:42 +0100
|
-- Colin Watson <cjwatson@ubuntu.com> Thu, 31 Jul 2014 10:27:42 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.232) utopic; urgency=medium
|
livecd-rootfs (2.232) utopic; urgency=medium
|
||||||
|
@ -561,8 +561,8 @@ EOF
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu-touch)
|
ubuntu-touch|ubuntu-core)
|
||||||
cp -af /usr/share/livecd-rootfs/live-build/ubuntu-touch/* \
|
cp -af /usr/share/livecd-rootfs/live-build/${PROJECT}/* \
|
||||||
config/
|
config/
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
12
live-build/ubuntu-core/hooks/01-setup_user.chroot
Executable file
12
live-build/ubuntu-core/hooks/01-setup_user.chroot
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
USER=ubuntu
|
||||||
|
UGID=1000
|
||||||
|
|
||||||
|
echo "I: creating default user $USER"
|
||||||
|
adduser --gecos $USER --disabled-login $USER --uid $UGID
|
||||||
|
|
||||||
|
echo "I: set user $USER password to $USER"
|
||||||
|
echo "$USER:$USER" | chpasswd
|
||||||
|
|
||||||
|
chown -R $UGID:$UGID /home/$USER
|
8
live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot
Executable file
8
live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
USER=ubuntu
|
||||||
|
|
||||||
|
DEFGROUPS="sudo"
|
||||||
|
|
||||||
|
echo "I: add $USER to ($DEFGROUPS) group(s)"
|
||||||
|
usermod -a -G ${DEFGROUPS} ${USER}
|
11
live-build/ubuntu-core/hooks/99-remove-documentation.chroot
Executable file
11
live-build/ubuntu-core/hooks/99-remove-documentation.chroot
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# remove-documentation: Remove unnecessary documentation to reduce disk usage
|
||||||
|
#
|
||||||
|
# Author: Alex Chiang <achiang@canonical.com>
|
||||||
|
# Date : November 9, 2010
|
||||||
|
|
||||||
|
echo "Removing documentation..."
|
||||||
|
find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true
|
||||||
|
find /usr/share/doc -empty|xargs rmdir || true
|
||||||
|
rm -rf /usr/share/man /usr/share/groff /usr/share/info /usr/share/lintian /usr/share/linda /var/cache/man
|
Loading…
x
Reference in New Issue
Block a user