(CommandList children: [ (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(amd64)} {(i386)} {(powerpc)} {(sparc)}] action: (C {(default_mirror)} {(http) (Lit_Other ":") (//archive.ubuntu.com/ubuntu)}) ) (case_arm pat_list: [{(Lit_Other "*")}] action: (C {(default_mirror)} {(http) (Lit_Other ":") (//ports.ubuntu.com/ubuntu-ports)}) ) ] ) (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (C {(finddebs_style)} {(from-indices)}) (C {(variants)} {(-)} {(buildd)} {(fakechroot)}) (If arms: [ (if_arm cond: (C {(doing_variant)} {(fakechroot)}) action: (AndOr children: [ (C {(test)} {(DQ ($ VSub_Name "$FAKECHROOT"))} {(Lit_Other "=")} {(DQ (true))}) (C {(error)} {(1)} {(FAKECHROOTREQ)} {(DQ ("This variant requires fakechroot environment to be started"))} ) ] op_id: Op_DPipe ) ) ] ) (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(alpha)} {(ia64)}] action: (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:LIBC) rhs:{(DQ (libc6.1))})] ) ) (case_arm pat_list: [{(Lit_Other "*")}] action: (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:LIBC) rhs:{(DQ (libc6))})] ) ) ] ) (FuncDef name: work_out_debs body: (BraceGroup children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ (CommandSubPart command_list: (C {(get_debs)} {(Priority) (Lit_Other ":")} {(required)}) spids: [145 153] ) ) } ) ] ) (If arms: [ (if_arm cond: (C {(doing_variant)} {(-)}) action: (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(get_debs)} {(Priority) (Lit_Other ":")} {(important)}) spids: [178 186] ) ) } ) ] ) ) (if_arm cond: (C {(doing_variant)} {(buildd)}) action: (CommandList children: [ (FuncDef name: add body: (BraceGroup children: [ (If arms: [ (if_arm cond: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(DQ ($ VSub_Number "$1"))} {(Lit_Other "]")} ) action: (C {(eval)} { (DQ ($ VSub_Number "$2") ("=") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ($ VSub_Number "$2") (" ") ($ VSub_Number "$3") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) ) } ) ) ] ) ] ) spids: [209 213] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ ( "apt binutils cpio cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 " ) (${ VSub_Name LIBC) ( "-dev libdb4.4 libgdbm3 libstdc++6 libstdc++6-4.1-dev linux-libc-dev make patch perl perl-modules" ) ) } ) ] ) (C {(add)} {(ia64)} {(base)} {(DQ (libunwind7-dev))}) (C {(add)} {(sparc)} {(base)} {(DQ (lib64gcc1))}) (C {(add)} {(sparc)} {(base)} {(DQ (libc6-dev-sparc64))}) (C {(add)} {(sparc)} {(base)} {(DQ (libc6-sparc64))}) ] ) ) (if_arm cond: (C {(doing_variant)} {(fakechroot)}) action: (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:base) rhs:{(DQ (apt))})] ) ) ] ) ] ) spids: [135 139] ) (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: [358] ) ] ) (SimpleCommand words: [{(Lit_Other ":")}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))} fd: -1 spids: [367] ) ] ) (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: [403] ) ] ) (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: [457 462] ) ) } ) ] ) (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: [470 481] ) ) } ) ] ) (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: [510] ) ] ) (C {(touch)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))} ) ] ) spids: [437 441] ) (C {(x_feign_install)} {(dpkg)}) ] ) spids: [332 336] ) (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: [573 580] ) } ) ] negated: False ) ] ) spids: [550 554] ) (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: [602 606] ) } ) ) spids: [597 608] ) ) } ) ] ) ] ) spids: [587 591] ) (C {(setup_devices)}) (If arms: [ (if_arm cond: (C {(doing_variant)} {(fakechroot)}) action: (C {(setup_proc_fakechroot)}) ) (if_arm cond: (NoOp) action: (CommandList children: [(C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)})] ) ) ] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:DEBIAN_FRONTEND) rhs:{(noninteractive)})] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:DEBCONF_NONINTERACTIVE_SEEN) rhs:{(true)})] ) (Assignment scope: Global flags: [Export] words: [{(DEBIAN_FRONTEND)} {(DEBCONF_NONINTERACTIVE_SEEN)}] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:bases) rhs:{(7)})] ) (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))} ) ) ] ) (If arms: [ (if_arm cond: (C {(doing_variant)} {(fakechroot)}) action: (C {(install_fakechroot_tools)}) ) ] ) (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"))} ) (If arms: [(if_arm cond:(C {(doing_variant)} {(-)}) action:(C {(x_core_install)} {(debconf)}))] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:bases) rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(set)} {(--)} {($ VSub_Name "$required")}) (C {(echo)} {($ VSub_Pound "$#")}) ] ) spids: [943 955] ) } ) ] ) (C {(info)} {(UNPACKREQ)} {(DQ ("Unpacking required packages..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(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)} {(--status-fd)} {(8)} {(--force-depends)} {(--unpack)} { (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$required")}) spids: [1005 1010] ) } ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1012] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1015] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKREQ)} {(DQ ("Unpacking required packages"))} {(UNPACKING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1037])] ) ] negated: False ) (C {(info)} {(CONFREQ)} {(DQ ("Configuring required packages..."))}) (If arms: [ (if_arm cond: (C {(doing_variant)} {(fakechroot)}) action: (CommandList children: [ (C {(sed)} {(-i)} {(SQ <"/dpkg.*--compare-versions/ s/\\<lt\\>/lt-nl/">)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/initscripts.postinst))} ) (C {(rm)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/libdevmapper1)) (Lit_Other "*") (.postinst) } ) ] ) ) ] ) (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: [1124] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(in_target_failmsg)} {(CONF_REQ_FAIL)} {(DQ ("Failure while configuring required packages."))} {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)} ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1185] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1188] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFREQ)} {(DQ ("Configuring required packages"))} {(CONFIGURING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1210])] ) ] negated: False ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:bases) rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(set)} {(--)} {($ VSub_Name "$base")}) (C {(echo)} {($ VSub_Pound "$#")}) ] ) spids: [1221 1233] ) ) } ) ] ) (C {(info)} {(UNPACKBASE)} {(DQ ("Unpacking the base system..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(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)} {(--status-fd)} {(8)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} { (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$base")}) spids: [1288 1293] ) } ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1295] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1298] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKBASE)} {(DQ ("Unpacking base system"))} {(UNPACKING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1320])] ) ] negated: False ) (C {(info)} {(CONFBASE)} {(DQ ("Configuring the base system..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ( "Failure while configuring base packages. This will be attempted 5 times." ) ) } {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1375] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1378] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} {(CONFIGURING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1400])] ) ] negated: False ) (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")} {(CONFBASE)} {(DQ ("Configuring base system"))} ) (C {(info)} {(BASESUCCESS)} {(DQ ("Base system installed successfully."))}) ] ) spids: [542 546] ) ] )