Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=30c6871a85f1eb38b4d5607330aeeac9769b3335

commit 30c6871a85f1eb38b4d5607330aeeac9769b3335
Author: James Buren <r...@frugalware.org>
Date:   Fri May 27 20:41:49 2011 -0500

fw32-0.6-1-x86_64
* add fw32 systemd service for bootup mounting

diff --git a/source/apps-extra/fw32/FrugalBuild 
b/source/apps-extra/fw32/FrugalBuild
index 698e1ea..7a33e16 100644
--- a/source/apps-extra/fw32/FrugalBuild
+++ b/source/apps-extra/fw32/FrugalBuild
@@ -2,8 +2,8 @@
# Maintainer: James Buren <r...@frugalware.org>

pkgname=fw32
-pkgver=0.5
-pkgrel=2
+pkgver=0.6
+pkgrel=1
pkgdesc="A framework for maintaining an i686 environment on x86_64."
url="http://www.frugalware.org";
rodepends=('util-linux' 'sudo' 'grep' 'coreutils')
@@ -11,11 +11,12 @@ groups=('apps-extra')
archs=('!i686' 'x86_64' '!ppc' '!arm')
up2date="$pkgver"
backup=('etc/fw32/pacman-g2.conf')
-source=(fw32 pacman-g2.conf fw32-run.c README.Frugalware)
+source=(fw32 pacman-g2.conf fw32-run.c fw32.service README.Frugalware)
sha1sums=('8f710817d22b1929d1fbd2f8e4c03e199d847816' \
'd84ca5b6d1c37993dd6514d41eb4923a057a0d27' \
'3ac904555b20ae69b3456238787d3eb7c7146687' \
-          '38f15d2fe6d1665efe243187eb2c9d9fd571d12e')
+          '4dbeb369a1ff3ebff4e525b8876528cb79677626' \
+          '4aee3ad893b97dc919c38a28c517428749348f30')

build()
{
@@ -27,6 +28,7 @@ build()
Fexec cc -Wall -Wextra $CFLAGS fw32-run.c -o fw32-run
Fexe /usr/bin/fw32-run
Fexec chmod u+s $Fdestdir/usr/bin/fw32-run
+       Ffile /lib/systemd/system/fw32.service
}

# optimization OK
diff --git a/source/apps-extra/fw32/README.Frugalware 
b/source/apps-extra/fw32/README.Frugalware
index 4ef0599..6a19a64 100644
--- a/source/apps-extra/fw32/README.Frugalware
+++ b/source/apps-extra/fw32/README.Frugalware
@@ -6,6 +6,7 @@ options used for pacman-g2.
Commands to use (with sudo or root shell):
fw32-create
fw32-update
+systemctl enable fw32.service (required for boot-time fw32 root mounting)

2) Updating chroot
This needs to be done when packages become out of date or the chroot
@@ -30,7 +31,14 @@ Command to use (with sudo or root shell):
fw32-delete
WARNING: Should not be done while someone is using the chroot.

-7) Running a command within the chroot
+7) Removing fw32
+Command to use (with sudo or root shell):
+fw32-delete
+systemctl disable fw32.service (only needed if you enabled this at setup time)
+pacman-g2 -R fw32
+WARNING: Should not be done while someone is using the chroot.
+
+8) Running a command within the chroot
Commands run will have the permissions of the user.

To get a shell:
diff --git a/source/apps-extra/fw32/fw32.service 
b/source/apps-extra/fw32/fw32.service
new file mode 100644
index 0000000..2a7f4ad
--- /dev/null
+++ b/source/apps-extra/fw32/fw32.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mount fw32 root directories at startup.
+After=syslog.target
+
+[Service]
+ExecStart=/usr/bin/fw32-mount
+ExecStop=/usr/bin/fw32-umount
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to