(CommandList children: [ (C {(default_mirror)} {(http) (Lit_Other ":") (//old-releases.ubuntu.com/ubuntu)}) (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (Assignment scope:Global pairs:[(assign_pair lhs:(LeftVar name:LIBC) rhs:{(libc6)})]) (If arms: [ (if_arm cond: (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(DQ (alpha))} {(Lit_Other "]")} ) (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(DQ (ia64))} {(Lit_Other "]")} ) ] op_id: Op_DPipe ) action: (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:LIBC) rhs:{(DQ (libc6.1))})] ) ) ] ) (FuncDef name: work_out_debs body: (BraceGroup children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ ( "base-files base-passwd bash bsdutils build-essential coreutils debianutils diff dpkg dselect e2fslibs e2fsprogs fakeroot findutils gcc-3.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcap1 libcomerr2 libdb1-compat libdb3 libgcc1 libncurses5 libpam-modules libpam-runtime libpam0g libss2 libstdc++5 libuuid1 login lsb-base mawk mount ncurses-base ncurses-bin perl-base sed slang1a-utf8 sysv-rc sysvinit tar util-linux zlib1g" ) ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ ( "apt binutils cpio cpp cpp-3.3 dpkg-dev g++ g++-3.3 gcc gcc-3.3 libc6-dev libdb4.2 libgdbm3 libstdc++5-3.3-dev linux-kernel-headers make patch perl perl-modules" ) ) } ) ] ) (FuncDef name: without_package body: (BraceGroup children: [ (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: False ) ] ) spids: [85 89] ) (FuncDef name: subst_package body: (BraceGroup children: [ (Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Number "$3"))}) (C {(tr)} {(SQ <" ">)} {(SQ <"\\n">)}) (C {(sed)} { (DQ ("s/^") ($ VSub_Number "$1") (Lit_Other "$") (/) ($ VSub_Number "$2") (/)) } ) (C {(tr)} {(SQ <"\\n">)} {(SQ <" ">)}) ] negated: False ) ] ) spids: [139 143] ) (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list:[{(DQ (amd64))}] action:(NoOp)) (case_arm pat_list:[{(DQ (i386))}] action:(NoOp)) (case_arm pat_list:[{(DQ (powerpc))}] action:(NoOp)) (case_arm pat_list: [{(DQ (alpha))}] action: (CommandList children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ (CommandSubPart command_list: (C {(subst_package)} {(DQ (libc6))} {(DQ (libc6.1))} {(DQ ($ VSub_Name "$required"))} ) spids: [246 261] ) ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(subst_package)} {(DQ (libc6-dev))} {(DQ (libc6.1-dev))} {(DQ ($ VSub_Name "$base"))} ) spids: [267 282] ) ) } ) ] ) ] ) ) (case_arm pat_list: [{(DQ (ia64))}] action: (CommandList children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ (CommandSubPart command_list: (C {(subst_package)} {(DQ (libc6))} {(DQ (libc6.1))} {(DQ ($ VSub_Name "$required"))} ) spids: [298 313] ) ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(subst_package)} {(DQ (libc6-dev))} {(DQ (libc6.1-dev))} {(DQ ($ VSub_Name "$base"))} ) spids: [319 334] ) ) } ) ] ) ] ) ) (case_arm pat_list:[{(Lit_Other "*")}] action:(NoOp)) ] ) ] ) spids: [62 66] ) (FuncDef name: install_debs body: (BraceGroup children:[(C {(first_stage_install)})(C {(second_stage_install)})]) spids: [358 362] ) (FuncDef name: first_stage_install body: (BraceGroup children: [ (C {(extract)} {($ VSub_Name "$required")}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg))}) (SimpleCommand words: [{(Lit_Other ":")}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} fd: -1 spids: [400] ) ] ) (SimpleCommand words: [{(echo)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))} fd: -1 spids: [409] ) ] ) (C {(setup_etc)}) (If arms: [ (if_arm cond: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} {(Lit_Other "]")} ) action: (CommandList children: [ (SimpleCommand words: [{(echo)} {(SQ <"# UNCONFIGURED FSTAB FOR BASE SYSTEM">)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} fd: -1 spids: [445] ) ] ) (C {(chown)} {(0) (Lit_Other ":") (0)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} ) (C {(chmod)} {(644)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))}) ] ) ) ] ) (FuncDef name: x_feign_install body: (BraceGroup children: [ (Assignment scope: Local pairs: [(assign_pair lhs:(LeftVar name:pkg) rhs:{(DQ ($ VSub_Number "$1"))})] ) (Assignment scope: Local pairs: [ (assign_pair lhs: (LeftVar name:deb) rhs: { (DQ (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$pkg")}) spids: [499 504] ) ) } ) ] ) (Assignment scope: Local pairs: [ (assign_pair lhs: (LeftVar name:ver) rhs: { (DQ (CommandSubPart command_list: (C {(extract_deb_field)} {(DQ ($ VSub_Name "$TARGET") (/) ($ VSub_Name "$deb"))} {(Version)} ) spids: [512 523] ) ) } ) ] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info))}) (SimpleCommand words: [ {(echo)} { (DQ ("Package: ") ($ VSub_Name "$pkg") ("\n") ("Version: ") ($ VSub_Name "$ver") ("\n") ("Status: install ok installed") ) } ] redirects: [ (Redirect op_id: Redir_DGreat arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} fd: -1 spids: [552] ) ] ) (C {(touch)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))} ) ] ) spids: [479 483] ) (C {(x_feign_install)} {(dpkg)}) ] ) spids: [374 378] ) (FuncDef name: second_stage_install body: (BraceGroup children: [ (FuncDef name: x_core_install body: (BraceGroup children: [ (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} { (CommandSubPart command_list: (C {(debfor)} {(DQ ($ VSub_At "$@"))}) spids: [615 622] ) } ) ] negated: False ) ] ) spids: [592 596] ) (FuncDef name: p body: (BraceGroup children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:baseprog) rhs: { (DQ (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name "$baseprog")}) right: (ArithWord w: { (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(1)} ) spids: [643 647] ) } ) ) spids: [638 649] ) ) } ) ] ) ] ) spids: [628 632] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:DEBIAN_FRONTEND) rhs:{(noninteractive)})] ) (Assignment scope:Global flags:[Export] words:[{(DEBIAN_FRONTEND)}]) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:bases) rhs:{(40)})] ) (C {(setup_devices)}) (C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(INSTCORE)} {(DQ ("Installing core packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(ln)} {(-sf)} {(mawk)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(base-files)} {(base-passwd)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(dpkg)}) (If arms: [ (if_arm cond: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} {(Lit_Other "]")} ) action: (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} ) ) ] ) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {($ VSub_Name "$LIBC")}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(perl-base)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(rm)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(mawk)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(UNPACKREQ)} {(DQ ("Unpacking required packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (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)} { (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$required")}) spids: [973 978] ) } ) ] negated: False ) (C {(p)} {(10)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(CONFREQ)} {(DQ ("Configuring required packages..."))}) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} ) (SimpleCommand words: [ {(echo)} { (DQ ("#!/bin/sh\n") ("echo\n") ("echo ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ("Warning: Fake start-stop-daemon called, doing nothing") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ) } ] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} fd: -1 spids: [1038] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (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: False ) (C {(p)} {(10)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(INSTCORE)} {(DQ ("Installing base packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (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)} {(CommandSubPart command_list:(C {(debfor)} {($ VSub_Name "$base")}) spids:[12001205])} ) ] negated: False ) (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: False ) (C {(p)} {(9)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} ) (C {(progress)} {($ VSub_Name "$bases")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(BASESUCCESS)} {(DQ ("Base system installed successfully."))}) ] ) spids: [584 588] ) ] )