git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.14.5.
[libguestfs.git]
/
images
/
guest-aux
/
make-fedora-img.sh
diff --git
a/images/guest-aux/make-fedora-img.sh
b/images/guest-aux/make-fedora-img.sh
index
0e064b4
..
b4c07e9
100755
(executable)
--- a/
images/guest-aux/make-fedora-img.sh
+++ b/
images/guest-aux/make-fedora-img.sh
@@
-14,7
+14,7
@@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139,
USA.
+# Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
# Make a standard test image which is used by all the tools test
# scripts. This test image is supposed to look like a Fedora
# Make a standard test image which is used by all the tools test
# scripts. This test image is supposed to look like a Fedora
@@
-31,7
+31,7
@@
LABEL=ROOT / ext2 default 0 0
EOF
# Create a disk image.
EOF
# Create a disk image.
-../run ../fish/guestfish <<
'EOF'
+../run ../fish/guestfish <<
EOF
sparse fedora.img.tmp 512M
run
sparse fedora.img.tmp 512M
run
@@
-75,7
+75,7
@@
write /etc/sysconfig/network "HOSTNAME=fedora.invalid"
upload guest-aux/fedora-name.db /var/lib/rpm/Name
upload guest-aux/fedora-packages.db /var/lib/rpm/Packages
upload guest-aux/fedora-name.db /var/lib/rpm/Name
upload guest-aux/fedora-packages.db /var/lib/rpm/Packages
-upload bin-x86_64-dynamic /bin/ls
+upload
${SRCDIR}/
bin-x86_64-dynamic /bin/ls
mkdir /boot/grub
touch /boot/grub/grub.conf
mkdir /boot/grub
touch /boot/grub/grub.conf
@@
-83,6
+83,14
@@
touch /boot/grub/grub.conf
# Test files.
write /etc/test1 "abcdefg"
write /etc/test2 ""
# Test files.
write /etc/test1 "abcdefg"
write /etc/test2 ""
+upload -<<__end /etc/test3
+a
+b
+c
+d
+e
+f
+__end
write /bin/test1 "abcdefg"
write /bin/test2 "zxcvbnm"
write /bin/test3 "1234567"
write /bin/test1 "abcdefg"
write /bin/test2 "zxcvbnm"
write /bin/test3 "1234567"