Changeset 720


Ignore:
Timestamp:
Nov 21, 2007 1:49:21 AM (6 years ago)
Author:
jrollins
Message:

debirf: a bunch of changes trying to not require root to build
debirf. this is sort of working, but there are some bugs that need to
be ironed out, and some structural changes to the package that need to
be addressed.

Location:
trunk/debirf
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/debirf/debian/changelog

    r691 r720  
     1debirf (0.6) unstable; urgency=low 
     2 
     3  * changed debootstrap to run with fakechroot 
     4  * changed plugins to run under fakeroot 
     5  * the above changes mean being root is not necessary to make-debirf. 
     6  * ***STILL IN DEVELOPMENT*** 
     7 
     8 -- Jameson Rollins <jrollins@fifthhorseman.net>  Wed, 21 Nov 2007 01:32:50 -0500 
     9 
    110debirf (0.5) unstable; urgency=low 
    211 
  • trunk/debirf/debian/debirf.links

    r691 r720  
     1/usr/share/debirf/plugins/a0_apt-update /etc/debirf/profiles/minimal/plugins/a0_apt-update 
    12/usr/share/debirf/plugins/a0_store-config /etc/debirf/profiles/minimal/plugins/a0_store-config 
    23/usr/share/debirf/plugins/a0_motd /etc/debirf/profiles/minimal/plugins/a0_motd 
     
    89/usr/share/debirf/plugins/z0_remove-locales /etc/debirf/profiles/minimal/plugins/z0_remove-locales 
    910/usr/share/debirf/plugins/z1_apt-clean /etc/debirf/profiles/minimal/plugins/z1_apt-clean 
    10 /usr/share/debirf/plugins/z2_motd_end /etc/debirf/profiles/minimal/plugins/z2_motd_end 
    1111 
     12/usr/share/debirf/plugins/a0_apt-update /etc/debirf/profiles/rescue/plugins/a0_apt-update 
    1213/usr/share/debirf/plugins/a0_store-config /etc/debirf/profiles/rescue/plugins/a0_store-config 
    1314/usr/share/debirf/plugins/a0_motd /etc/debirf/profiles/rescue/plugins/a0_motd 
     
    2122/usr/share/debirf/plugins/z0_remove-locales /etc/debirf/profiles/rescue/plugins/z0_remove-locales 
    2223/usr/share/debirf/plugins/z1_apt-clean /etc/debirf/profiles/rescue/plugins/z1_apt-clean 
    23 /usr/share/debirf/plugins/z2_motd_end /etc/debirf/profiles/rescue/plugins/z2_motd_end 
  • trunk/debirf/fs/usr/sbin/make-debirf

    r691 r720  
    1 #!/bin/bash 
     1#!/bin/bash -e 
    22 
    33# make-debirf: script to build debirf system (must be root). 
     
    3939    # exclude aptitude 
    4040    mkdir -p "$DEBIRF_ROOT" 
    41     /usr/sbin/debootstrap --exclude=aptitude "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 
     41    #/usr/sbin/debootstrap --exclude=aptitude "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 
     42    fakeroot -s "$DEBIRF_FAKECHROOT_STATE" fakechroot debootstrap --variant=fakechroot "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 
    4243} 
    4344 
     
    4748        export $var 
    4849    done 
    49     run-parts --verbose "$DEBIRF_PLUGINS" 
     50    #run-parts --verbose "$DEBIRF_PLUGINS" 
     51    fakeroot -i "$DEBIRF_FAKECHROOT_STATE" -s "$DEBIRF_FAKECHROOT_STATE" run-parts --verbose "$DEBIRF_PLUGINS" 
    5052} 
    5153 
     
    133135### MAIN 
    134136 
    135 trap umount_proc-sys EXIT 
     137#trap umount_proc-sys EXIT 
    136138 
    137139if [ "$1" = '-h' -o "$1" = '--help' ] ; then 
     
    198200    fi 
    199201fi 
    200      
     202 
     203# check buildd 
     204if [ -z "$DEBIRF_BUILDD" ] ; then 
     205    failure "DEBIRF_BUILDD is not set." 
     206fi 
     207 
     208# check debirf root 
     209if [ -z "$DEBIRF_ROOT" ] ; then 
     210    failure "DEBIRF_ROOT is not set." 
     211fi 
     212 
     213# set fakechroot save file 
     214DEBIRF_FAKECHROOT_STATE="$DEBIRF_BUILDD/.fakechroot-$DEBIRF_LABEL.save" 
     215 
     216# check variables 
    201217echo "Debirf variables:" 
    202218for var in ${!DEBIRF_*}; do 
     
    210226read -p "enter to continue: " OK 
    211227 
    212 # check buildd 
    213 if [ -z "$DEBIRF_BUILDD" ] ; then 
    214     failure "DEBIRF_BUILDD is not set." 
    215 fi 
    216  
    217228# create debootstrap root 
    218 if [ -z "$DEBIRF_ROOT" ] ; then 
    219     failure "DEBIRF_ROOT is not set." 
    220 fi 
    221229if [ -d "$DEBIRF_ROOT" ] ; then 
    222230    echo "Directory $DEBIRF_ROOT already exists." 
     
    247255 
    248256if [ "$DEBIRF_PLUGINS" ] ; then 
    249     mount_proc-sys 
     257    #mount_proc-sys 
    250258     
    251     # update apt 
    252     debirf_exec apt-get update 
    253      
    254     # install plugins 
     259    # run plugins 
    255260    msg "executing plugins..." 
    256261    run_plugins 
    257262    msg "plugins complete." 
    258263 
    259     umount_proc-sys 
     264    #umount_proc-sys 
    260265fi 
    261266 
  • trunk/debirf/fs/usr/share/debirf/plugins/apt-get-disk-rescue

    r686 r720  
    1212# or later. 
    1313 
    14 debirf_exec apt-get --assume-yes remove --purge aptitude 
    15  
    1614debirf_exec apt-get --assume-yes install less moreutils lvm2 mdadm lsof screen hdparm smartmontools pciutils 
    1715 
  • trunk/debirf/fs/usr/share/debirf/plugins/z1_apt-clean

    r481 r720  
    1212# or later. 
    1313 
     14debirf_exec apt-get --assume-yes remove --purge aptitude 
     15 
    1416debirf_exec apt-get clean 
    1517rm "$DEBIRF_ROOT/var/cache/apt/"*.bin 
Note: See TracChangeset for help on using the changeset viewer.