Changeset 3360 in MondoRescue
- Timestamp:
- Mar 7, 2015, 2:41:11 PM (9 years ago)
- Location:
- branches/3.0/mindi
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/install.sh
r3319 r3360 112 112 # Managing parted2fdisk 113 113 if [ "$ARCH" = "ia64" ] ; then 114 (cd $SBINDIR && ln -sf parted2fdisk.pl parted2fdisk) 115 install -s -m 755 $SBINDIR/parted2fdisk.pl $locallib/mindi/rootfs/sbin/parted2fdisk 114 (cd $SBINDIR && ln -sf parted2fdisk.pl parted2fdisk && install -m 755 $SBINDIR/parted2fdisk.pl $locallib/mindi/rootfs/sbin/parted2fdisk 116 115 else 117 116 # FHS requires fdisk under /sbin -
branches/3.0/mindi/mindi
r3347 r3360 733 733 local lcMagicExt2fs="EXT2-fs: blocksize too small for device." 734 734 local lcMagicExt3fs="<3>EXT3-fs: blocksize too small for journal device." 735 local lcMagicInitfs="<6>checking if image is initramfs...|[<]*6[>]*Unpacking initramfs...| <6>Trying to unpack rootfs image as initramfs"735 local lcMagicInitfs="<6>checking if image is initramfs...|[<]*6[>]*Unpacking initramfs...|[<]*6[>]*Trying to unpack rootfs image as initramfs" 736 736 737 737 # local variables … … 2554 2554 2555 2555 TurnTgzIntoRdz() { 2556 local tgz_dir_fname rdz_fname tempfile mountpoint old_pwd nodes kernelsize maxsize res currsize not_copied j k s w needed_modules_path 2556 local tgz_dir_fname rdz_fname tempfile mountpoint old_pwd nodes kernelsize maxsize res currsize not_copied j k s w needed_modules_path d thelink 2557 2557 2558 2558 tgz_dir_fname=$1 … … 2591 2591 fi 2592 2592 done 2593 2593 2594 LogFile "INFO: what is now in $mountpoint" 2594 2595 ls -alR $mountpoint >> $LOGFILE 2595 2596 2596 2597 # Check files before copying to discover configuration issues or McAfee preventing mindi reading these files 2598 # copy from rootfs into mountpoint 2597 2599 for f in $tgz_dir_fname/*; do 2598 2600 if [ ! -r $f ]; then … … 2602 2604 fi 2603 2605 done 2606 (cd etc ; ln -sf bashrc profile ; ln -sf bashrc shrc ; ln -sf ../proc/mounts mtab ; ln -sf ../sbin/init linuxrc) 2607 ln -sf sbin/init linuxrc 2604 2608 tar -zxf symlinks.tgz || Die "Cannot untar symlinks.tgz" 2605 2609 … … 2619 2623 2620 2624 # Copy of files mandatory for ssh to automate mount if sshfs is used 2621 mkdir $mountpoint/.ssh2625 mkdir -p $mountpoint/.ssh $mountpoint/tmp 2622 2626 cp -a ~root/.ssh/* $mountpoint/.ssh 2> /dev/null 2623 2627 cat > $mountpoint/tmp/myssh << EOF -
branches/3.0/mindi/parted2fdisk.pl
r3336 r3360 4 4 # 5 5 # parted2fdisk: fdisk like interface for parted 6 # [develop ped for mindi/mondo http://www.mondorescue.org]6 # [developed for mindi/mondo http://www.mondorescue.org] 7 7 # 8 8 # Aims to be architecture independant (i386/ia64) 9 9 # Tested on ia64 with RHAS 2.1 - Mandrake 9.0 - RHEL 3.0 - SLES 10 10 10 # 11 # Copyright B. Cornec 2000-201 311 # Copyright B. Cornec 2000-2015 12 12 # Provided under the GPL v2 13 13 14 14 use strict; 15 use File::Basename; 15 16 16 17 … … 19 20 =head1 NAME 20 21 21 parted2fdisk is a fdisk li e command using parted internally.22 parted2fdisk is a fdisk like command using parted internally. 22 23 23 24 =head1 DESCRIPTION 24 25 25 parted2fdisk behaves like a fdisk command, but dialog internally with parted in order to manipulate partiion tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aimed at providing compatible external interface wti fdisk. Developed initialy for ia64 Linux, but is also useful now on x86 systems using GPT partition format (for large HDDs).26 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). 26 27 27 28 =head1 SYNOPSIS … … 96 97 97 98 my $fdisk = "/sbin/fdisk"; 99 $fdisk = "/usr/sbin/fdisk" if (not -x "/sbin/fdisk"); 98 100 my $parted = "/sbin/parted"; 101 $parted = "/usr/sbin/parted" if (not -x "/sbin/parted"); 99 102 100 103 my $i; … … 156 159 "linux-swap" => "82", 157 160 "lvm" => "8e", 161 "raid" => "fd", 158 162 "" => "", 159 163 ); … … 435 439 "linux-swap" => "Linux swap", 436 440 "lvm" => "Linux LVM", 441 "raid" => "RAID Linux auto", 437 442 "fat16" => "fat16", 438 443 "fat32" => "fat32", … … 479 484 480 485 # This will return MB 481 get_parted 486 get_parted($device,$start,$end,\%type); 482 487 483 488 while (($n,$d) = each %type) { … … 675 680 } 676 681 677 678 # Based on Version 2.4 27-Sep-1996 Charles Bailey bailey@genetics.upenn.edu679 # in Basename.pm680 681 sub basename {682 683 my($fullname) = shift;684 685 my($dirpath,$basename);686 687 ($dirpath,$basename) = ($fullname =~ m#^(.*/)?(.*)#s);688 689 return($basename);690 }691 692 682 sub myexit { 693 683 -
branches/3.0/mindi/rootfs/sbin/find-and-mount-cdrom
r2878 r3360 1 1 #!/bin/sh 2 2 # 3 # $Id$ 4 # 3 5 4 6 TryToFindCDROM() {
Note:
See TracChangeset
for help on using the changeset viewer.