:: Re: [DNG] live-build
Página Inicial
Delete this message
Reply to this message
Autor: aitor_-czr
Data:  
Para: Ozi Traveller
CC: Dng
Assunto: Re: [DNG] live-build
Hi Ozi,

You must type:

# lb clean --purge

Here you are an example:

# lb init

# lb config -a amd64 \
       --binary-images iso \
       --distribution jessie \
       --win32-loader false \
       --checksums md5 \
       --archive-areas "main" \
       --apt-recommends false \
       --apt aptitude \
       --apt-options --yes \
       --build-with-chroot false \
       --bootappend-live "boot=live config locales=en_US.UTF-8 
keyboard-layouts=en" \
       --bootappend-live "boot=live config username=user" \
       --bootappend-live "boot=live config full_username=User" \
       --bootappend-live "boot=live config hostname=devuan"


# lb bootstrap && lb chroot

# mount -t none -o bind /proc chroot/proc
# mount -t none -o bind /sys chroot/sys
# mount -t none -o bind /dev/pts chroot/dev/pts

If you want to run graphical applications inside the jail (for example,
bleachbit), you must run outside it the following:

$ xhost +

# chroot chroot

Customize your distro, clean the system, exit and umount the partitions:

# umount chroot/proc
# umount chroot/sys
# umount chroot/dev/pts

Before building, be sure chroot/proc is empty (if not, reboot the
computer). Now build the content of the jail:

# lb binary

To clean the last step:

# lb clean --binary

To clean all:

# lb clean --purge

IMPORTANT NOTE: Like in git, it's important to check the hour. Don't be
like me !

Aitor.

El 20/09/15 a las 00:09, Ozi Traveller escribió:
> Hi
>
> I added --build-with-chroot false as suggested
>
> But the build still fails.
>
> Is there something else I could try?
>
> Ozi
>
> [2015-09-20 08:05:08] lb clean
> P: Executing auto/clean script.
> [2015-09-20 08:05:08] lb clean noauto
> P: Cleaning chroot
> [2015-09-20 08:05:09] lb config
> P: Executing auto/config script.
> [2015-09-20 08:05:09] lb config noauto --mode debian
> --build-with-chroot false --distribution jessie
> --debian-installer-distribution jessie --debian-installer live
> --architectures amd64 --linux-flavours amd64 --apt-recommends false
> --apt-secure true --apt-indices false --apt-source-archives false
> --archive-areas main contrib non-free --parent-mirror-bootstrap deb
> http://au.mirror.devuan.org/merged/ --parent-mirror-binary deb
> http://au.mirror.devuan.org/merged/ --mirror-bootstrap deb
> http://au.mirror.devuan.org/merged/ --mirror-binary deb
> http://au.mirror.devuan.org/merged/ --iso-application DIY Linux
> --iso-publisher DIY --iso-volume DIY Live --backports false --security
> false --updates false --memtest none --win32-loader false --debug
> --verbose --bootappend-live boot=live config components
> file=/preseed.cfg quiet splash autologin nouveau.modeset=0
> radeon.modeset=0
> P: Updating config tree for a debian/jessie/amd64 system
> P: Symlinking hooks...
> [2015-09-20 08:05:09] lb build
> P: Executing auto/build script.
> [2015-09-20 08:05:09] lb build noauto
> P: live-build 4.0.3
> P: Building config tree for a debian/jessie/amd64 system
> [2015-09-20 08:05:09] lb bootstrap
> P: Setting up cleanup function
> [2015-09-20 08:05:09] lb bootstrap_cache restore
> P: Restoring bootstrap stage from cache...
> [2015-09-20 08:05:09] lb bootstrap_cdebootstrap
> [2015-09-20 08:05:09] lb bootstrap_debootstrap
> P: Begin bootstrapping system...
> P: If the following stage fails, the most likely cause of the problem
> is with your mirror configuration or a caching proxy.
> P: Running debootstrap (download-only)...
> I: Retrieving Release
> E: unknown location deb/dists/jessie/Release
> P: Begin unmounting filesystems...
> P: Saving caches...
> chroot: failed to run command ‘/usr/bin/env’: No such file or directory