mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
mk-sbuild: conditionally install lvm2 only for lv-snapshot schroots
This commit is contained in:
parent
3997415b8f
commit
32d0e916d3
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -5,6 +5,7 @@ ubuntu-dev-tools (0.93) UNRELEASED; urgency=low
|
|||||||
|
|
||||||
[ Emmet Hikory ]
|
[ Emmet Hikory ]
|
||||||
* Support qemu-arm-static -> qemu-kvm-extras-static transition
|
* Support qemu-arm-static -> qemu-kvm-extras-static transition
|
||||||
|
* mk-sbuild: conditionally install lvm2 only for lv-snapshot schroots
|
||||||
|
|
||||||
[ Loïc Minier ]
|
[ Loïc Minier ]
|
||||||
* Demote qemu-kvm-extras-static to a Suggests since most people don't build
|
* Demote qemu-kvm-extras-static to a Suggests since most people don't build
|
||||||
@ -14,7 +15,7 @@ ubuntu-dev-tools (0.93) UNRELEASED; urgency=low
|
|||||||
* requestsync: add -C to allow manually adding changelog when missing
|
* requestsync: add -C to allow manually adding changelog when missing
|
||||||
(LP: #518574).
|
(LP: #518574).
|
||||||
|
|
||||||
-- Kees Cook <kees@ubuntu.com> Mon, 08 Feb 2010 10:12:23 -0800
|
-- Emmet Hikory <persia@ubuntu.com> Tue, 09 Feb 2010 11:32:02 +0900
|
||||||
|
|
||||||
ubuntu-dev-tools (0.92) lucid; urgency=low
|
ubuntu-dev-tools (0.92) lucid; urgency=low
|
||||||
|
|
||||||
|
@ -36,10 +36,10 @@ if [ -w /etc/passwd ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Perform once-only things to initially set up for using sbuild+schroot+lvm
|
# Perform once-only things to initially set up for using sbuild+schroot
|
||||||
if [ ! -w /var/lib/sbuild ]; then
|
if [ ! -w /var/lib/sbuild ]; then
|
||||||
# Load all the packages you'll need to do work
|
# Load all the packages you'll need to do work
|
||||||
sudo apt-get install sbuild schroot debootstrap lvm2
|
sudo apt-get install sbuild schroot debootstrap
|
||||||
# Add self to the sbuild group
|
# Add self to the sbuild group
|
||||||
sudo adduser "$USER" sbuild
|
sudo adduser "$USER" sbuild
|
||||||
|
|
||||||
@ -340,6 +340,9 @@ fi
|
|||||||
|
|
||||||
case "$SRC_TYPE" in
|
case "$SRC_TYPE" in
|
||||||
"lvm")
|
"lvm")
|
||||||
|
# Install lvm2 if missing
|
||||||
|
dpkg -l lvm2 > /dev/null || sudo apt-get install lvm2
|
||||||
|
|
||||||
# Allocate the "golden" chroot LV
|
# Allocate the "golden" chroot LV
|
||||||
sudo lvcreate -n "$CHROOT_LV" -L "$LV_SIZE" "$VG"
|
sudo lvcreate -n "$CHROOT_LV" -L "$LV_SIZE" "$VG"
|
||||||
sudo mkfs -t ext4 "$CHROOT_PATH"
|
sudo mkfs -t ext4 "$CHROOT_PATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user