Changeset 3377 in MondoRescue for branches/3.2/mindi


Ignore:
Timestamp:
May 6, 2015, 1:10:17 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Rename mr_parted2fdisk to mr-parted2fdisk for consistency with all other new mr-* commands
  • Adds functions mr_center_string and mr_popup_and_get_string with dynamic allocation to solve a memory allocation issue reported on the ML
  • Fix mr_boot_type to detect correctly a UEFI based system
Location:
branches/3.2/mindi
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/README.ia64

    r3371 r3377  
    33Linux distributions on ia64 uses a different file table format than on i386, called GPT instead of MBR. The fdisk command used by mindi/mondo to determine all aspects related to the disc hasn't been adapted yet to handle GPT. Only the parted command is able to do it.
    44
    5 So a perl script called mr_parted2fdisk was written that will take as input all the order that mindi/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used on ia64. On other archs, mr_parted2fdisk is a link to fdisk.
     5So a perl script called mr-parted2fdisk was written that will take as input all the order that mindi/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used on ia64. On other archs, mr-parted2fdisk is a link to fdisk.
    66
    7 Thus mindi/mondorestore commands launched by root will pass all their call to mr_parted2fdisk on ia64 instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work.  (Note again that on ia32 parte2fdisk is in fact a link to fdisk to avoid any compatibility issue)
     7Thus mindi/mondorestore commands launched by root will pass all their call to mr-parted2fdisk on ia64 instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work.  (Note again that on ia32 parte2fdisk is in fact a link to fdisk to avoid any compatibility issue)
    88
    99The install.sh script will setup everything correctly for you.
    1010
    11 Note that mr_parted2fdisk supports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q
     11Note that mr-parted2fdisk supports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q
    1212
    1313On Itanium systems you won't generally find an installed isolinux.bin file which is required by mindi to create the bootable images. You'll generally have to take an i386 package for your distribution and install it on your itanium system so that you provide the required missing file.
     
    1818Bruno.
    1919
    20 2015-03-21 tool renamed to mr_parted2fdisk
     202015-03-21 tool renamed to mr-parted2fdisk
    21212013-06-08 no binary made anymore, only perl scripts
    22222005-12-12 parted2fdisk used everywhere
  • branches/3.2/mindi/install.sh

    r3371 r3377  
    9595
    9696# Manage perl script man pages
    97 for s in mindi-bkphw mindi-get-perl-modules mr_parted2fdisk; do
     97for s in mindi-bkphw mindi-get-perl-modules mr-parted2fdisk; do
    9898    install -m 755 $s $SBINDIR
    9999    pod2man -c "$s a MondoRescue tool" --section=8 --release="$VERSTR" $SBINDIR/$s > $s.8
     
    109109fi
    110110
    111 # Managing mr_parted2fdisk
    112 (cd $SBINDIR && install -m 755 mr_parted2fdisk $locallib/mindi/rootfs/usr/sbin/mr_parted2fdisk)
     111# Managing mr-parted2fdisk
     112(cd $SBINDIR && install -m 755 mr-parted2fdisk $locallib/mindi/rootfs/usr/sbin/mr-parted2fdisk)
    113113
    114114if [ "$PKGBUILDMINDI" != "true" ]; then
    115115    chown -R root:root $locallib/mindi $conf # $DOCDIR
    116     chown root:root $SBINDIR/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $SBINDIR/mr_parted2fdisk
     116    chown root:root $SBINDIR/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $SBINDIR/mr-parted2fdisk
    117117fi
    118118
  • branches/3.2/mindi/mindi

    r3372 r3377  
    100100\n0eF107-Main | Boot Parameters 0eF207-1/2 | 0eF307-2/2 | 0eF407-PXE\n\
    101101"
    102 FDISK=$MINDI_SBIN/mr_parted2fdisk
     102FDISK=$MINDI_SBIN/mr-parted2fdisk
    103103
    104104# Using a config file allow to overwrite some values
  • branches/3.2/mindi/mr-parted2fdisk

    r3376 r3377  
    33# $Id$
    44#
    5 # mr_parted2fdisk: fdisk like interface for parted
     5# mr-parted2fdisk: fdisk like interface for parted
    66# [developed for mindi/mondo http://www.mondorescue.org]
    77#
     
    2727=head1 NAME
    2828
    29 mr_parted2fdisk is a fdisk like command using parted internally for analysing GPT labelled disks
     29mr-parted2fdisk is a fdisk like command using parted internally for analysing GPT labelled disks
    3030
    3131=head1 DESCRIPTION
    3232
    33 mr_parted2fdisk behaves like the fdisk command, but dialog internally with parted in order to manipulate partition tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aims at providing compatible external interface with fdisk. Developed initialy for ia64 Linux, it is also useful now on x86 systems using GPT partition format (for large HDDs).
     33mr-parted2fdisk behaves like the fdisk command, but dialog internally with parted in order to manipulate partition tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aims at providing compatible external interface with fdisk. Developed initialy for ia64 Linux, it is also useful now on x86 systems using GPT partition format (for large HDDs).
    3434
    3535=head1 SYNOPSIS
    3636
    37 mr_parted2fdisk -s partition
    38 
    39 mr_parted2fdisk -l [device]
    40 
    41 mr_parted2fdisk [-n] device
     37mr-parted2fdisk -s partition
     38
     39mr-parted2fdisk -l [device]
     40
     41mr-parted2fdisk [-n] device
    4242
    4343=head1 OPTIONS
     
    5656
    5757Fake mode. Doesn't pass the commands just simulate.
     58
     59=item B<-v>
     60
     61Verbose mode. Used to help debugging issues.
    5862
    5963=item B<no option>
     
    102106
    103107# Log
    104 my $flog = "/var/log/mr_parted2fdisk.log";
     108my $flog = "/var/log/mr-parted2fdisk.log";
    105109open(FLOG, "> $flog") || die "Unable to open $flog";
    106110
     
    133137my $device;
    134138my $endmax = "";
    135 my $appname = "mr_parted2fdisk";
     139my $appname = "mr-parted2fdisk";
    136140my ($mrver,$mrrev) = mr_version_init();
    137141
Note: See TracChangeset for help on using the changeset viewer.