<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lfscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Aborting_and_Resuming</id>
	<title>Aborting and Resuming - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lfscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Aborting_and_Resuming"/>
	<link rel="alternate" type="text/html" href="https://lfscript.org/w/index.php?title=Aborting_and_Resuming&amp;action=history"/>
	<updated>2026-04-23T00:06:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://lfscript.org/w/index.php?title=Aborting_and_Resuming&amp;diff=795&amp;oldid=prev</id>
		<title>Marcel at 14:03, 14 June 2014</title>
		<link rel="alternate" type="text/html" href="https://lfscript.org/w/index.php?title=Aborting_and_Resuming&amp;diff=795&amp;oldid=prev"/>
		<updated>2014-06-14T14:03:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:03, 14 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Documentation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;LFScript 4 has been designed to make it easy to pause (abort) a build and resume it later. To resume a build, you only need to execute LFScript with the same [[LFScript Switches|options]] as before, and make sure that the &amp;lt;code&amp;gt;-u&amp;lt;/code&amp;gt; switch is set.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;LFScript 4 has been designed to make it easy to pause (abort) a build and resume it later. To resume a build, you only need to execute LFScript with the same [[LFScript Switches|options]] as before, and make sure that the &amp;lt;code&amp;gt;-u&amp;lt;/code&amp;gt; switch is set.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key lfscript_wiki-lfscriptwiki_:diff:1.41:old-64:rev-795:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Marcel</name></author>
	</entry>
	<entry>
		<id>https://lfscript.org/w/index.php?title=Aborting_and_Resuming&amp;diff=64&amp;oldid=prev</id>
		<title>Marcel: Created page with &quot;LFScript 4 has been designed to make it easy to pause (abort) a build and resume it later. To resume a build, you only need to execute LFScript with the same [[LFScript Switch...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lfscript.org/w/index.php?title=Aborting_and_Resuming&amp;diff=64&amp;oldid=prev"/>
		<updated>2012-01-30T21:10:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;LFScript 4 has been designed to make it easy to pause (abort) a build and resume it later. To resume a build, you only need to execute LFScript with the same [[LFScript Switch...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;LFScript 4 has been designed to make it easy to pause (abort) a build and resume it later. To resume a build, you only need to execute LFScript with the same [[LFScript Switches|options]] as before, and make sure that the &amp;lt;code&amp;gt;-u&amp;lt;/code&amp;gt; switch is set.&lt;br /&gt;
&lt;br /&gt;
== How to abort ==&lt;br /&gt;
&lt;br /&gt;
You can abort the execution of LFScript at any time by pressing &amp;lt;code&amp;gt;CTRL+C&amp;lt;/code&amp;gt;. LFScript will not stop immediately, but will perform some clean up first, which might take a couple of seconds.&lt;br /&gt;
&lt;br /&gt;
== The cleanup ==&lt;br /&gt;
&lt;br /&gt;
LFScript has been designed to make various environmental changes invisible, but actually runs most of the time in a carefully set up chroot environment with bindings to important system data on your machine.&lt;br /&gt;
&lt;br /&gt;
When aborting, LFScript will restore the environment and removes any temporary files and settings that were created during execution. So, it is very important you do not abort again while LFScript is restoring the system.&lt;br /&gt;
&lt;br /&gt;
If you do so anyway, there will be unwanted traces of LFScript lurking around. Also, subsequent sessions of LFScript will spit out error messages indicating that temporary files or temporary usernames already exist.&lt;br /&gt;
&lt;br /&gt;
== Performing a manual clean-up ==&lt;br /&gt;
&lt;br /&gt;
If you accidentally aborted the automatic clean-up process, or your system crashed while LFScript was executing, you need to restore your system by hand.&lt;br /&gt;
&lt;br /&gt;
=== Reboot your system ===&lt;br /&gt;
First, reboot your system. This is the simplest way to remove the bindings that link the chroot environment with your system.&lt;br /&gt;
&lt;br /&gt;
=== Remove (as root) the builddir.#.tmp folder ===&lt;br /&gt;
This completely removes the temporary system used by the aborted LFScript session, possibly freeing several gigabytes of space. Be sure to check the subfolder &amp;#039;sources/buildmgr/packages&amp;#039; for any completed packages you want to save, and copy them to the appropriate &amp;#039;packages&amp;#039; folder in LFScript&amp;#039;s working directory, before you remove this folder.&lt;br /&gt;
&lt;br /&gt;
If you were running LFScript from a live cd, you now have restored your system and can ignore the next sections.&lt;br /&gt;
&lt;br /&gt;
=== Remove temporary symlinks in the root filesystem ===&lt;br /&gt;
Remove the &amp;lt;code&amp;gt;/sources&amp;lt;/code&amp;gt; symlink on your system, then inspect the [[buildbase.lfs]] script for your base system to find out additional &amp;lt;code&amp;gt;EXTERNAL_FOLDERS&amp;lt;/code&amp;gt; and delete them. These should only be symlinks, and in most cases (LFS) will be only &amp;lt;code&amp;gt;/tools&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Delete the build user ===&lt;br /&gt;
Inspect the [[buildbase.lfs]] script for your base system to find out the name of the &amp;lt;code&amp;gt;BUILDUSER&amp;lt;/code&amp;gt;. Then issue (as root):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;userdel -r &amp;lt;builduser&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this, you have restored your system and should be able to run LFScript again.&lt;/div&gt;</summary>
		<author><name>Marcel</name></author>
	</entry>
</feed>