Package: dfsbuild Version: 0.99.2 Followup-For: Bug #383260
Hi, the attached patch introduces the configuration settings 'preparescripts' and 'cleanupscripts'. Both may be a list of scripts that will get executed after bootstrapping/before iso generation with the target directory as the first and only parameter. I hope that it helps. regards, Lars -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages dfsbuild depends on: ii cdebootstrap 0.3.15 Bootstrap a Debian system ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy ii grub 0.97-20 GRand Unified Bootloader ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libgmp3c2 2:4.2.1+dfsg-4 Multiprecision arithmetic library ii mkisofs 9:1.1.0-1 Dummy transition package for genis ii reprepro 1.3.1-1 debian package repository producer ii ucf 2.0017 Update Configuration File: preserv dfsbuild recommends no packages. -- no debconf information
--- dfsbuild.orig/dfsbuild-0.99.2/Actions.hs 2006-04-20 00:10:11.000000000 +0200 +++ dfsbuild/dfsbuild-0.99.2/Actions.hs 2007-01-03 15:36:59.000000000 +0100 @@ -43,6 +43,11 @@ finished Bootstrapped Bootstrapped -> -- Time to install shared files do installlib env + finished EnvironmentPrepared + EnvironmentPrepared -> -- execute configurable hook scripts + do im $ "Executing preparation scripts" + mapM_ (safeSystem `flip` [ targetdir env ]) + (splitWs $ eget env "preparescripts") finished LibsInstalled LibsInstalled -> -- Install additional packages do installpkgs env @@ -68,6 +73,11 @@ do safeSystem "mkcramfs" [(targetdir env) ++ "/opt/initrd", (targetdir env) ++ "/boot/initrd.dfs"] recursiveRemove SystemFS $ (targetdir env) ++ "/opt/initrd" + finished EnvironmentCleaned + EnvironmentCleaned -> -- execute configurable hook scripts + do im $ "Executing preparation scripts" + mapM_ (safeSystem `flip` [ targetdir env ]) + (splitWs $ eget env "cleanupscripts") finished RamdiskBuilt RamdiskBuilt -> -- Install the bootloader do (isoargs, blfunc) <- Bootloader.install env --- dfsbuild.orig/dfsbuild-0.99.2/Utils.hs 2007-01-01 23:06:17.000000000 +0100 +++ dfsbuild/dfsbuild-0.99.2/Utils.hs 2007-01-03 15:33:00.000000000 +0100 @@ -30,10 +31,10 @@ marker :: String, datestr :: String} -data DFSState = Fresh | Initialized | Mirrored | Bootstrapped | Installed - | LibsInstalled | DebsInstalled | CfgHandled | InitPrepped +data DFSState = Fresh | Initialized | Mirrored | Bootstrapped | EnvironmentPrepared + | Installed | LibsInstalled | DebsInstalled | CfgHandled | InitPrepped | RDPrepped - | KernelsInstalled | RamdiskBuilt | BootloaderInstalled + | KernelsInstalled | EnvironmentCleaned | RamdiskBuilt | BootloaderInstalled deriving (Eq, Show, Read, Ord) im = infoM "dfs" --- dfsbuild.orig/dfsbuild-0.99.2/dfs.cfg 2006-07-02 01:46:22.000000000 +0200 +++ dfsbuild/dfsbuild-0.99.2/dfs.cfg 2007-01-03 15:40:22.000000000 +0100 @@ -115,6 +115,12 @@ /var/log/dpkg.log /var/log/bootstrap.log +# Scripts that should be executed after bootstrapping and before package installation +#preparescripts = + +# Scripts that should be executed after package installation and before iso generation +#cleanupscripts = + ###################################################################### # Arch settings: i386 ######################################################################