I'm trying to write a script that will build a root filesystem for use with user mode linux. Obviously, I'm missing something. Here's what I have so far: #!/bin/sh -x dd if=/dev/zero of=root_fs bs=1024 count=1 seek=1M mkfs.ext2 -j -F -v root_fs mount -o loop root_fs mnt mkdir -p mnt/var/lib/rpm mkdir -p mnt/var/cache/yum mkdir -p mnt/var/log rpm --initdb --root `pwd`/mnt yum -y -d1 --installroot=mnt install rpm umount mnt And here is the error: + yum -y -d1 --installroot=mnt install rpm Unable to find pid error: cannot open Packages index using db3 - No such file or directory (2) error: cannot open Packages database in mnt/var/lib/rpm Traceback (most recent call last): File "/usr/bin/yum", line 30, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum/yummain.py", line 237, in main clientStuff.rpmdbNevralLoad(rpmDBInfo) File "/usr/share/yum/clientStuff.py", line 160, in rpmdbNevralLoad hdrs = ts.dbMatch() TypeError: rpmdb open failed Help? Alternative ideas? -- Matt It's not what I know that counts, it's what I can remember in time to use.