Re: Bootdisk build
Benjamin Schieder <blindcoder-1k+CIuW/[email protected]>
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 14, 2005 at 12:24:57PM +0100, Oliver Schneidewind wrote:
> I've tried to build a rock 2.1 bootdisk target and found the ugly define
> tmpdev="`losetup -f`" on
>
> http://www.rocklinux.net/svn/rock-linux/trunk/target/bootdisk/build_stage1.sh
>
> my build say hi don't know the switch -f for losetup and man say the
> seam too.
> Coud somebody tell my what makes -f and how can I pass this Error.
Hi.
What's ugly about that? According to my losetup manpage:
---snip---
Print name of first unused loop device:
losetup -f
---snap---
That's a clean solution for going through all /dev/loop* /dev/loop/* files
manually.
blindcoder@ceres:~$ mine -q util-linux
util-linux 2.12p 0
Alternatively, you can use the following bash code:
unset tmpdev
for x in /dev/loop* /dev/loop/* ; do
[ -e ${x} ] || continue
losetup $x 2>&1 >/dev/null || tmpdev="$x"
[ -n "${tmpdev}" ] && break
done
Greetings,
Benjamin
--
Benjamin 'blindCoder' Schieder
Registered Linux User #289529: http://counter.li.org
finger blindcoder-1k+CIuW/[email protected] | gpg --import
--
/lusr/bin/brain: received signal: SIGIDIOT
_______________________________________________
rock-devel mailing list
[email protected]
http://www.rocklinux.net/mailman/listinfo/rock-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDeHXDr0OTeImXvg8RAsFlAJ0b6ogP1od3A20WIaOkvuqqrIiSUgCeNZKH Yhl2ORq290wkgHmR0XkAnSE= =5Jmn -----END PGP SIGNATURE-----