(command.CommandList children: [ (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (C {(force_md5)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:LIBC spids:[11]) op: Equal rhs: {(libc6)} spids: [11] ) ] spids: [11] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$ARCH'))} {(Lit_Other '=')} {(DQ (alpha))} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$ARCH'))} {(Lit_Other '=')} {(DQ (ia64))} {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:LIBC spids:[50]) op: Equal rhs: {(DQ (libc6.1))} spids: [50] ) ] spids: [50] ) ] spids: [16777215 47] ) ] spids: [16777215 55] ) (command.FuncDef name: work_out_debs body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[67]) op: Equal rhs: { (DQ ( 'base-files base-passwd bash bsdutils debianutils diff dpkg e2fsprogs fileutils findutils grep gzip hostname libc6 libcap1 libdb3 libgdbmg1 libncurses5 libpam-modules libpam-runtime libpam0g libperl5.6 libstdc++2.10-glibc2.2 login mawk mount ncurses-base ncurses-bin perl-base sed shellutils slang1 sysvinit tar textutils util-linux' ) ) } spids: [67] ) ] spids: [67] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[74]) op: Equal rhs: { (DQ ( 'apt binutils cpio cpp cpp-2.95 debconf dpkg-dev g++ g++-2.95 gcc gcc-2.95 libc6-dev libdb2 libstdc++2.10-dev make patch perl perl-modules' ) ) } spids: [74] ) ] spids: [74] ) (command.FuncDef name: without_package body: (command.BraceGroup children: [ (command.Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Number '$2'))}) (C {(tr)} {(SQ <' '>)} {(SQ <'\\n'>)}) (C {(grep)} {(-v)} {(DQ ('^') ($ VSub_Number '$1') (Lit_Other '$'))}) (C {(tr)} {(SQ <'\\n'>)} {(SQ <' '>)}) ] negated: F ) ] spids: [86] ) spids: [81 85] ) (command.Case to_match: {($ VSub_DollarName '$ARCH')} arms: [ (case_arm pat_list: [{(DQ (alpha))}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[149]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ (libc6))} {(DQ ($ VSub_DollarName '$required'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [151 161] ) (' libc6.1') ) } spids: [149] ) ] spids: [149] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[166]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ (libc6-dev))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [168 178] ) (' libc6.1-dev') ) } spids: [166] ) ] spids: [166] ) ] spids: [143 146 183 16777215] ) (case_arm pat_list:[{(DQ (arm))}] spids:[186 189 192 16777215]) (case_arm pat_list:[{(DQ (i386))}] spids:[195 198 201 16777215]) (case_arm pat_list: [{(DQ (ia64))}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[210]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ (libc6))} {(DQ ($ VSub_DollarName '$required'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [212 222] ) (' libc6.1 gcc-2.96-base libreadline4') ) } spids: [210] ) ] spids: [210] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[227]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ (cpp-2.95))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [229 239] ) (' cpp-2.96') ) } spids: [227] ) ] spids: [227] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[244]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ (gcc-2.95))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [246 256] ) (' gcc-2.96') ) } spids: [244] ) ] spids: [244] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[261]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ ('g++-2.95'))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [263 273] ) (' g++-2.96') ) } spids: [261] ) ] spids: [261] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[278]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(without_package)} {(DQ (libc6-dev))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [280 290] ) (' libc6.1-dev elilo efibootmgr dosfstools libparted1.4 parted') ) } spids: [278] ) ] spids: [278] ) ] spids: [204 207 295 16777215] ) (case_arm pat_list:[{(DQ (m68k))}] spids:[298 301 304 16777215]) (case_arm pat_list:[{(DQ (powerpc))}] spids:[307 310 313 16777215]) (case_arm pat_list:[{(DQ (sparc))}] spids:[316 319 322 16777215]) (case_arm pat_list:[{(DQ (mips))}] spids:[325 328 331 16777215]) (case_arm pat_list:[{(DQ (mipsel))}] spids:[334 337 340 16777215]) (case_arm pat_list:[{(DQ (hppa))}] spids:[343 346 349 16777215]) (case_arm pat_list:[{(s390)} {(s390x)}] spids:[352 355 358 16777215]) (case_arm pat_list: [{(sh) (Lit_Other '*')}] spids: [361 363 366 16777215] ) (case_arm pat_list:[{(Lit_Other '*')}] spids:[369 370 377 16777215]) ] spids: [136 140 380] ) ] spids: [63] ) spids: [58 62] ) (command.FuncDef name: first_stage_install body: (command.BraceGroup children: [ (C {(extract)} {($ VSub_DollarName '$required')}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg))}) (command.SimpleCommand words: [{(Lit_Other ':')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/status))} ) ] ) (command.SimpleCommand words: [{(echo)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/available))} ) ] ) (C {(setup_etc)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [{(echo)} {(SQ <'# UNCONFIGURED FSTAB FOR BASE SYSTEM'>)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))} ) ] ) (command.Sentence child: (C {(chown)} {(0) (Lit_Other ':') (0)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))} ) terminator: <Op_Semi ';'> ) (C {(chmod)} {(644)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))}) ] spids: [16777215 447] ) ] spids: [16777215 486] ) (C {(setup_devices)}) (command.FuncDef name: x_feign_install body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pkg spids:[504]) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [504] ) ] spids: [502] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:deb spids:[512]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$pkg')})] ) left_token: <Left_CommandSub '$('> spids: [514 518] ) ) } spids: [512] ) ] spids: [510] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ver spids:[524]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(extract_deb_field)} { (DQ ($ VSub_DollarName '$TARGET') (/) ($ VSub_DollarName '$deb') ) } {(Version)} ) ] ) left_token: <Left_CommandSub '$('> spids: [526 536] ) ) } spids: [524] ) ] spids: [522] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info))}) (command.SimpleCommand words: [ {(echo)} { (DQ ('Package: ') ($ VSub_DollarName '$pkg') ('\n') ('Version: ') ($ VSub_DollarName '$ver') ('\n') ('Status: install ok installed') ) } ] redirects: [ (redir.Redir op: <Redir_DGreat '>>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/status))} ) ] ) (C {(touch)} { (DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list) ) } ) ] spids: [499] ) spids: [494 498] ) (C {(x_feign_install)} {(dpkg)}) ] spids: [390] ) spids: [385 389] ) (command.FuncDef name: second_stage_install body: (command.BraceGroup children: [ (command.FuncDef name: x_core_install body: (command.BraceGroup children: [ (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {(DQ ($ VSub_At '$@'))})] ) left_token: <Left_CommandSub '$('> spids: [628 634] ) } ) ] negated: F ) ] spids: [610] ) spids: [605 609] ) (command.FuncDef name: p body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:baseprog spids:[649]) op: Equal rhs: { (DQ (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Plus left: (arith_expr.ArithWord w:{($ VSub_DollarName '$baseprog')}) right: (arith_expr.ArithWord w: { (word_part.BracedVarSub token: <VSub_Number 1> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(1)} ) spids: [656 660] ) } ) ) spids: [651 662] ) ) } spids: [649] ) ] spids: [649] ) ] spids: [646] ) spids: [641 645] ) (C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DEBIAN_FRONTEND spids:[679]) op: Equal rhs: {(noninteractive)} spids: [679] ) ] spids: [679] ) (C {(export)} {(DEBIAN_FRONTEND)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:baseprog spids:[689]) op: Equal rhs: {(0)} spids: [689] ) ] spids: [689] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:bases spids:[693]) op: Equal rhs: {(40)} spids: [693] ) ] spids: [693] ) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(info)} {(INSTCORE)} {(DQ ('Installing core packages...'))}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(ln)} {(-sf)} {(mawk)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/awk))}) (C {(x_core_install)} {(base-files)} {(base-passwd)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(x_core_install)} {(dpkg)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/localtime))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/localtime))} ) ] spids: [16777215 806] ) ] spids: [16777215 821] ) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(x_core_install)} {($ VSub_DollarName '$LIBC')}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(x_core_install)} {(perl-base)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(rm)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/awk))}) (C {(x_core_install)} {(mawk)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(info)} {(UNPACKREQ)} {(DQ ('Unpacking required packages...'))}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(UNPACK_REQ_FAIL_FIVE)} { (DQ ( 'Failure while unpacking required packages. This will be attempted up to five times.' ) ) } {(DQ )} {(dpkg)} {(--force-depends)} {(--unpack)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$required')})] ) left_token: <Left_CommandSub '$('> spids: [983 987] ) } ) ] negated: F ) (command.Sentence child:(C {(p)} {(10)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(info)} {(CONFREQ)} {(DQ ('Configuring required packages...'))}) (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))} ) (command.SimpleCommand words: [ {(echo)} { (DQ ('#!/bin/sh\n') ('echo\n') ('echo ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('Warning: Fake start-stop-daemon called, doing nothing') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target_failmsg)} {(CONF_REQ_FAIL)} {(DQ ('Failure while configuring required packages.'))} {(DQ )} {(dpkg)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)} ) ] negated: F ) (command.Sentence child:(C {(p)} {(10)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(info)} {(INSTBASE)} {(DQ ('Installing base packages...'))}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(INST_BASE_FAIL_FIVE)} { (DQ ( 'Failure while installing base packages. This will be re-attempted up to five times.' ) ) } {(DQ )} {(dpkg)} {(--force-auto-select)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$base')})] ) left_token: <Left_CommandSub '$('> spids: [1205 1209] ) } ) ] negated: F ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ('Failure while configuring base packages. This will be attempted 5 times.')) } {(DQ )} {(dpkg)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ) ] negated: F ) (command.Sentence child:(C {(p)} {(9)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} ) (C {(progress)} {($ VSub_DollarName '$bases')} {($ VSub_DollarName '$bases')} {(INSTBASE)} {(DQ ('Installing base system'))} ) (C {(info)} {(BASESUCCESS)} {(DQ ('Base system installed successfully.'))}) ] spids: [602] ) spids: [597 601] ) ] )