depend python, cleanup unmounting loopback

ubuntu/precise
LaMont Jones 20 years ago
parent fd7c8edfcc
commit 68569c4daa

4
debian/control vendored

@ -1,13 +1,13 @@
Source: livecd-rootfs Source: livecd-rootfs
Section: devel Section: devel
Priority: optional Priority: optional
Build-Depends: sudo, debootstrap, rsync, cloop-utils, debhelper Build-Depends: sudo, debootstrap, rsync, cloop-utils, debhelper, python-minimal|python
Maintainer: LaMont Jones <lamont@canonical.com> Maintainer: LaMont Jones <lamont@canonical.com>
Standards-Version: 3.6.1.0 Standards-Version: 3.6.1.0
Package: livecd-rootfs Package: livecd-rootfs
Architecture: any Architecture: any
Depends: sudo, debootstrap, rsync, cloop-utils Depends: sudo, debootstrap, rsync, cloop-utils, python-minimal|python
Description: Construction script for the livecd rootfs Description: Construction script for the livecd rootfs
livecd-rootfs provides the script used to create the root filesystem livecd-rootfs provides the script used to create the root filesystem
on the livecd. on the livecd.

3
debian/livecd.sh vendored

@ -27,7 +27,7 @@ esac
ROOT=$(pwd)/chroot-livecd/ ROOT=$(pwd)/chroot-livecd/
IMG=livecd.fsimg IMG=livecd.fsimg
MOUNTS="${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev $(pwd)/$IMG ${ROOT}proc" MOUNTS="${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev ${ROOT}proc"
rm -rf ${ROOT} rm -rf ${ROOT}
@ -121,6 +121,7 @@ mke2fs $INUM -Osparse_super -F $IMG
DEV=$(losetup -f); DEV=$(losetup -f);
losetup $DEV $IMG losetup $DEV $IMG
mkdir -p livecd.mnt mkdir -p livecd.mnt
MOUNTS="$MOUNTS $(pwd)/livecd.mnt"
mount $DEV livecd.mnt mount $DEV livecd.mnt
rsync -a ${ROOT}/ livecd.mnt rsync -a ${ROOT}/ livecd.mnt

Loading…
Cancel
Save