[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Re: Cooking ISO preview
- From: Indigo <pointofavailability@xxxxxxxxx>
- Date: Fri, 11 Mar 2011 18:43:04 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fO7Yjq9XmRZNb+sURBB9oBqaWJ/+4m7QKMeaQ0GCMXY=; b=NPuvoh9Oio9uweSzog75TyJjDMtt7DiDGNiTvtoRa1uB3rcgHc8yEgasRnk6+tEMwS 0LYkTv/gXLVuH1Fl5kgWDdiKCTaGEhfChBz55WHl4k6jsN4awnzhz6usGc194FBp7mEw 8aJutUP3CkB8m/oniKeDHy2+dWYP7VUZd9Aw0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hf0F9pgBqEBSbNqLlp0uNSCmwPkdCQdhltHQmelW/PxF1ZSlhptQ8Nj/gdhKKQsI+D 7qrnSIvGsqv7f5A5lOXtFcNIPad/5PmXQstF42gwr3F31uh0TysHA9SgQ808dR1tWNMg 0bSkRRC64Y8PD1pbLSn0Ycu6rmuxyWfj1xFTY=
> It should also be possible to make home= use a file container, instead
> of a partition.
Special thanks to Gokhlayeh:
# Hope this works :)
# Allow to use bootoption: home=file:$DEVICE file=$FILE
# i.e.: home=file:sda1 file=/stuff/home
# home=file:myusb file=/home
# Edit /etc/init.d/bootopts.sh this way...
# Replace, line 99~103:
if [ -x /sbin/blkid ]; then
# Can be a label, uuid or devname.
DEVID gives us first: /dev/name.
DEVID=`/sbin/blkid | grep $DEVICE | cut -d: -f1`
DEVID=${DEVID##*/}
fi
# By:
if [ "${DEVICE%:*}" = "file" ]; then
LOOP="$(losetup -f)"
DEVID="${DEVICE#*:}"
if [ -x /sbin/blkid ]; then
# Can be a label, uuid or
devname. DEVID gives us first: /dev/name.
DEVID=`/sbin/blkid | grep
$DEVICE | cut -d: -f1`
DEVID="${DEVID##*/}"
fi
FILE=`cat /proc/cmdline | sed
's/.*file=\([^ ]*\).*/\1/'`
mkdir /media/$DEVID
mount /dev/$DEVID /media/$DEVID
losetup $LOOP /dev/$DEVID$file
DEVID=${LOOP##*/}
elif [ -x /sbin/blkid ]; then
# Can be a label, uuid or devname.
DEVID gives us first: /dev/name.
DEVID=`/sbin/blkid | grep $DEVICE | cut -d: -f1`
DEVID=${DEVID##*/}
fi
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/