Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for install_root #3

Closed
glensc opened this issue Mar 23, 2013 · 2 comments
Closed

add support for install_root #3

glensc opened this issue Mar 23, 2013 · 2 comments

Comments

@glensc
Copy link
Contributor

glensc commented Mar 23, 2013

in linux-live 6.x versions, it was possible to use ROOT directory which is used for building linux live image. i would like that support added back, that way i can build minimal livecd customized for my need (i.e i have packages i want on livecd in temp dir)

also, it would be nice to have support for executing extra scripts when all files have been copied to temp root, i.e to do additional cleanup (in my case i want to shrink /var/lib/rpm contents, which i do not want to do on real /var/lib/rpm)

ps: is there any post on why the versioning schema was changed? i.e 6.x -> 1.8 seems like "downgrade"

@Tomas-M
Copy link
Owner

Tomas-M commented Mar 24, 2013

I've removed ROOT at all since if you have your root filesystem in a subdirectory, simply unpack livekit there and chroot to it.

Regarding versioning change, 1.8 is the version of Linux Live Kit, which is a completely different project, Linux Live Scripts 6.x is a completely different code.

@Tomas-M Tomas-M closed this as completed Mar 24, 2013
@glensc
Copy link
Contributor Author

glensc commented Mar 25, 2013

btw, i found that i can put all *.sb modules to sb/ dir, then build omits scanning filesystem itself

so i created such script (i want to keep kernel dir separate, so i can easily swap kernel without rebuilding whole "OS data")

#!/bin/sh
set -e

cd $(dirname $(readlink -f $0))

. ./.config
. ./livekitlib

OS_SRC=/src
OS_IMAGE=sb/os.sb
KERNEL_IMAGE=sb/kernel-$KERNEL.sb

test -e $OS_IMAGE || \
    mksquashfs $OS_SRC $OS_IMAGE -comp xz -b 512k -e $OS_SRC/lib/modules/*

if [ ! -e $KERNEL_IMAGE ]; then
    t=$(mktemp -d)
    install -d $t/lib/modules
    cp -a /lib/modules/$KERNEL $t/lib/modules
    mksquashfs $t $KERNEL_IMAGE -comp xz -b 512k
    rm -rf $t
fi

perhaps you want to add such script to contrib/ in your distribution? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants