Changeset 3112


Ignore:
Timestamp:
03/06/08 11:03:37 (6 years ago)
Author:
alanbach-guest
Message:
  • Adds /cdrom symlink during installation/update, #93
Location:
pkg/main/parsix-installer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pkg/main/parsix-installer/trunk/01-fstab.bm

    r2910 r3112  
    8181 
    8282        # Add swap devices 
    83  
    8483        grep -v ^$ $TMPDIR/fstab >> $TARGET_MNT_POINT/etc/fstab 
    8584 
    8685        # Add CD-Roms 
    87          
    8886        for i in $(ls -d /dev/cdrom* 2>/dev/null); do 
    8987                m=${i#/dev} 
     
    9290                printf "%-15s %-15s %-7s %-15s %-7s %s\n" "$i" "/media$m" "udf,iso9660" "user,noauto" "0" "0" >> $TARGET_MNT_POINT/etc/fstab 
    9391        done 
     92 
     93        # /cdrom link #93 
     94        if [ -d "$TARGET_MNT_POINT/media/cdrom0" ]; then 
     95            (cd $TARGET_MNT_POINT ; ln -sf ./media/cdrom0/ /cdrom) 
     96        fi 
    9497 
    9598        # Add Floppy 
     
    100103 
    101104        # Remove not needed device links 
    102  
    103105        for I in $HD_MAP; do 
    104106                if [[ $I != /dev/*:/media/* && -n $TARGET_MNT_POINT ]]; then 
     
    111113 
    112114        # Change /etc/fstab to defaults and remove uid/gid 
    113  
    114115        perl -pi -e 's|([^n][^o])auto,users,exec,|\1|;s|([^n][^o])auto,users,exec|\1defaults|;s|(defaults),auto|\1|;s|^# Added by.*\n||;s|(,uid=\w*)||;s|(,gid=\w*)||' $TARGET_MNT_POINT/etc/fstab 
    115116 
  • pkg/main/parsix-installer/trunk/debian/changelog

    r2950 r3112  
     1parsix-installer (0.82.0.4) unstable; urgency=low 
     2 
     3  * Adds /cdrom symlink during installation/update, #93  
     4 
     5 -- Alan Baghumian <alan@technotux.org>  Thu, 06 Mar 2008 10:58:49 +0100 
     6 
    17parsix-installer (0.82.0.3) unstable; urgency=low 
    28 
  • pkg/main/parsix-installer/trunk/parsix-installer

    r2950 r3112  
    11251125    printf "%-15s %-15s %-7s %-15s %-7s %s\n" "$c" "/media$m" "udf,iso9660" "user,noauto" "0" "0" 
    11261126    done 
     1127 
     1128    # /cdrom link #93 
     1129    if [ -d ./media/cdrom0 ]; then 
     1130         ln -sf ./media/cdrom0/ /cdrom 
     1131    fi 
     1132 
    11271133    for f in $(ls -d /sys/block/fd* 2>/dev/null); do 
    11281134    [ -d ./media/floppy${f#/sys/block/fd} ] || mkdir -p ./media/floppy${f#/sys/block/fd} 
Note: See TracChangeset for help on using the changeset viewer.