pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mklivecd/files Another bonus for 0.15: rename...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/956651a42d63
branches:  trunk
changeset: 527585:956651a42d63
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Apr 10 20:52:01 2007 +0000

description:
Another bonus for 0.15: rename the base tarballs to ramfs_foo, because
mfs is not an appropiate name anymore.

diffstat:

 sysutils/mklivecd/files/livecd      |   6 +++---
 sysutils/mklivecd/files/mklivecd.sh |  32 ++++++++++++++++----------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diffs (118 lines):

diff -r f809346f8088 -r 956651a42d63 sysutils/mklivecd/files/livecd
--- a/sysutils/mklivecd/files/livecd    Tue Apr 10 20:30:55 2007 +0000
+++ b/sysutils/mklivecd/files/livecd    Tue Apr 10 20:52:01 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: livecd,v 1.6 2007/04/10 02:23:34 xtraeme Exp $ 
+# $NetBSD: livecd,v 1.7 2007/04/10 20:52:01 xtraeme Exp $ 
 #
 # Mount ramfs directories and unpack the required files
 # before anything.
@@ -44,9 +44,9 @@
        @USRPKGETC_MOUNT@
        @USRPKGETC_UNPACK@
 
-       for f in mfs_dev mfs_etc mfs_var mfs_root
+       for f in dev etc var root
        do
-           @TAR@ xfzp /stand/$f.tgz -C / > /dev/null 2>&1
+           @TAR@ xfzp /stand/ramfs_$f.tgz -C / > /dev/null 2>&1
             if [ "$?" -eq 0 ]; then
                 echo "=> $f unpacked successfully."
             else
diff -r f809346f8088 -r 956651a42d63 sysutils/mklivecd/files/mklivecd.sh
--- a/sysutils/mklivecd/files/mklivecd.sh       Tue Apr 10 20:30:55 2007 +0000
+++ b/sysutils/mklivecd/files/mklivecd.sh       Tue Apr 10 20:52:01 2007 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: mklivecd.sh,v 1.34 2007/04/10 03:05:49 xtraeme Exp $
+# $NetBSD: mklivecd.sh,v 1.35 2007/04/10 20:52:01 xtraeme Exp $
 #
 # Copyright (c) 2004-2007 Juan Romero Pardines.
 # All rights reserved.
@@ -635,14 +635,14 @@
        echo "clear_tmp=no";                                \
        ) >> $ISODIR/etc/rc.conf
 
-       # /etc/rc.d/root could umount the mfs directories, 
+       # /etc/rc.d/root could umount the ramfs directories, 
        # so it's best not to touch them.
 
        rm $ISODIR/etc/rc.d/root
        cat > $ISODIR/etc/rc.d/root <<_EOF_
 #!/bin/sh
 #
-# \$NetBSD: mklivecd.sh,v 1.34 2007/04/10 03:05:49 xtraeme Exp $
+# \$NetBSD: mklivecd.sh,v 1.35 2007/04/10 20:52:01 xtraeme Exp $
 # 
 
 # PROVIDE: root
@@ -762,10 +762,10 @@
 
         SUBST_H_MKDIR="/rescue/mkdir -p /ramfs/home"
        SUBST_H_MNT="/rescue/mount_null /ramfs/home /home"
-       SUBST_H_UNPACK="/rescue/tar xfzp /stand/mfs_home.tgz -C /"
+       SUBST_H_UNPACK="/rescue/tar xfzp /stand/ramfs_home.tgz -C /"
         SUBST_S_MKDIR="/rescue/mkdir -p /ramfs/pkg_sysconfdir"
        SUBST_S_MNT="/rescue/mount_null /ramfs/pkg_sysconfdir /usr/pkg/etc" 
-       SUBST_S_UNPACK="/rescue/tar xfzp /stand/mfs_pkg_sysconfdir.tgz -C /"
+       SUBST_S_UNPACK="/rescue/tar xfzp /stand/ramfs_pkg_sysconfdir.tgz -C /"
 
        sed -e "s|@MNT_RAMFS_ARGS@|$MNT_RAMFS_ARGS|g" \
             -e "s|@MNT_RAMFS_CMD@|$MNT_RAMFS_CMD|g" \
@@ -775,15 +775,15 @@
        for U in root dev etc home
        do
            if [ -d $ISODIR/$U ]; then
-               showmsg_n "Creating /stand/mfs_$U.tgz... "
-               @TAR@ cfzp $ISODIR/stand/mfs_$U.tgz $U >/dev/null 2>&1
+               showmsg_n "Creating /stand/ramfs_$U.tgz... "
+               @TAR@ cfzp $ISODIR/stand/ramfs_$U.tgz $U >/dev/null 2>&1
                showmsgstring
             fi
        done
 
-        if [ "$VND_COMPRESSION" = "no" ]; then
-                showmsg_n "Creating /stand/mfs_var.tgz... "
-                @TAR@ cfzp $ISODIR/stand/mfs_var.tgz var >/dev/null 2>&1
+        if is_disabled VND_COMPRESSION; then
+                showmsg_n "Creating /stand/ramfs_var.tgz... "
+                @TAR@ cfzp $ISODIR/stand/ramfs_var.tgz var >/dev/null 2>&1
                 showmsgstring
         fi
  
@@ -802,8 +802,8 @@
        fi
                         
        if [ -d $ISODIR/$PKG_SYSCONFDIR ]; then
-           showmsg_n "Creating /stand/mfs_pkg_sysconfdir.tgz..."
-           @TAR@ cfzp $ISODIR/stand/mfs_pkg_sysconfdir.tgz \
+           showmsg_n "Creating /stand/ramfs_pkg_sysconfdir.tgz..."
+           @TAR@ cfzp $ISODIR/stand/ramfs_pkg_sysconfdir.tgz \
                $PKG_SYSCONFDIR >/dev/null 2>&1
            showmsgstring
            sed -e "s|@USRPKGETC_MKDIR@|$SUBST_S_MKDIR|" \
@@ -957,10 +957,10 @@
                     showmsg_n "Removing /var/db/pkg... "
                     rm -rf $ISODIR/var/db/pkg/*
                     showmsgstring
-                    @TAR@ cfzp stand/mfs_var.tgz var
+                    @TAR@ cfzp stand/ramfs_var.tgz var
                 fi
             else
-                    @TAR@ cfzp stand/mfs_var.tgz var
+                    @TAR@ cfzp stand/ramfs_var.tgz var
             fi
         fi
 
@@ -987,8 +987,8 @@
                 rm $BASEDIR/$IMAGE_NAME.iso
             fi
 
-            if [ ! -f $ISODIR/stand/mfs_etc.tgz ]; then
-                showmsg "Cannot find mfs_etc.tgz file."
+            if [ ! -f $ISODIR/stand/ramfs_etc.tgz ]; then
+                showmsg "Cannot find ramfs_etc.tgz file."
                bye 1
             fi
             for RM in ${REMOVE_DIRS}



Home | Main Index | Thread Index | Old Index