OSDN Git Service
Chih-Wei Huang [Thu, 28 Oct 2021 17:45:15 +0000 (01:45 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Thu, 28 Oct 2021 17:44:03 +0000 (01:44 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Doug [Thu, 28 Oct 2021 17:37:02 +0000 (01:37 +0800)]
init: support Xen hypervisor device
Chih-Wei Huang [Tue, 22 Jun 2021 15:17:08 +0000 (23:17 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Tue, 22 Jun 2021 15:06:51 +0000 (23:06 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 22 Jun 2021 15:06:06 +0000 (23:06 +0800)]
1-install: cancel auto update mode if no partition found
The auto update mode (AUTO_INSTALL=update) tries to find a partition
labelled as Android-x86 or an ext4 partition. If no such a partition
is found, the auto mode should be cancelled.
Fixes:
244e03f0 ("Add auto installation function")
Mauro Rossi [Sat, 9 May 2020 22:51:27 +0000 (00:51 +0200)]
add new Debug options for troubleshooting
Chih-Wei Huang [Wed, 13 May 2020 09:27:27 +0000 (17:27 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Wed, 13 May 2020 05:25:11 +0000 (13:25 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 13 May 2020 05:24:32 +0000 (13:24 +0800)]
1-install: update symlink if the linked dir is upgraded
Chih-Wei Huang [Tue, 12 May 2020 15:09:26 +0000 (23:09 +0800)]
init: fall back to busybox's shell
Run busybox's shell if AOSP's shell fails to run. This makes
debug shell more reliable.
Chih-Wei Huang [Tue, 12 May 2020 14:55:22 +0000 (22:55 +0800)]
init: do not keep initrd's busybox in debug mode
Keeping initrd's busybox in debug mode is an old feature before we added
busybox porting to Android-x86. But it introduced some inconsistencies
between debug and normal modes. Moreover, it depends on AOSP's tool (ln)
to work properly. In case the tool fails to run, the system may not boot.
In short, the feature does more harm than good. Let's remove it from
debug mode. Only keep it if BUSYBOX=1 is set in cmdline.
Chih-Wei Huang [Wed, 6 May 2020 16:24:27 +0000 (00:24 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 6 May 2020 16:10:18 +0000 (00:10 +0800)]
1-install: move try_upgrade to an earlier step
The try_upgrade should be run before checking whether system
was installed as the read-write mode.
Chih-Wei Huang [Wed, 6 May 2020 15:36:49 +0000 (23:36 +0800)]
0-auto-detect: fix parsing error if aliases contain brackets
Chih-Wei Huang [Fri, 13 Mar 2020 03:44:32 +0000 (11:44 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Conflicts:
Android.mk
Chih-Wei Huang [Fri, 13 Mar 2020 03:42:08 +0000 (11:42 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 13 Mar 2020 03:36:21 +0000 (11:36 +0800)]
init: avoid finding system dir too aggressive
Only use a system dir if it contains build.prop.
Chih-Wei Huang [Thu, 12 Mar 2020 16:17:10 +0000 (00:17 +0800)]
Use isohybrid in AOSP's tree
This removes the dependency of an external host tool.
Chih-Wei Huang [Wed, 11 Dec 2019 06:43:42 +0000 (14:43 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Wed, 11 Dec 2019 06:43:08 +0000 (14:43 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 11 Dec 2019 06:37:24 +0000 (14:37 +0800)]
1-install: fix inconsistent alignment
Chih-Wei Huang [Tue, 3 Dec 2019 02:42:25 +0000 (10:42 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Tue, 3 Dec 2019 02:40:32 +0000 (10:40 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 3 Dec 2019 02:33:38 +0000 (10:33 +0800)]
init: set SRC=iso earlier
If iso-scan/filename is set in cmdline, SRC should be set earlier to
avoid misuse of other partitions.
Chih-Wei Huang [Mon, 2 Dec 2019 10:48:00 +0000 (18:48 +0800)]
init: avoid finding system partition too aggressive
If SRC is specified, do not use a system-like partition. This avoids
misuse.
Chih-Wei Huang [Fri, 22 Nov 2019 09:54:58 +0000 (17:54 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Conflicts:
Android.mk
Chih-Wei Huang [Fri, 22 Nov 2019 09:44:22 +0000 (17:44 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 22 Nov 2019 09:42:35 +0000 (17:42 +0800)]
Add version and arch to volume ID of the iso
It's suggested by the maintainer of libosinfo.
To avoid the volume ID too long, remove 'LiveCD' suffix.
Chih-Wei Huang [Thu, 7 Nov 2019 06:35:52 +0000 (14:35 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Wed, 30 Oct 2019 04:19:51 +0000 (12:19 +0800)]
1-install: avoid unnecessary errors from cp
Since ESP is a vfat partition, we cannot preserve attributes from ext4.
Chih-Wei Huang [Sat, 5 Oct 2019 10:37:18 +0000 (18:37 +0800)]
Use isohybrid.pl in AOSP's tree
This removes the dependency of an external host tool.
Chih-Wei Huang [Fri, 19 Jul 2019 04:32:54 +0000 (12:32 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Fri, 19 Jul 2019 04:31:13 +0000 (12:31 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 19 Jul 2019 04:25:57 +0000 (12:25 +0800)]
lndir: set permission, owner, group of destination dir
Set them to be the same as the source dir if runs by root.
Chih-Wei Huang [Wed, 10 Jul 2019 04:33:34 +0000 (12:33 +0800)]
1-install: replace make_ext4fs by mkfs.ext4
The make_ext4fs was removed in Android 9.
Due to unknown reason, TrustedGRUB can't be installed to the ext4
filesystem created by mkfs.ext4. So we format it as ext3 and then
convert it to ext4. This way works luckily.
Chih-Wei Huang [Fri, 28 Jun 2019 06:57:17 +0000 (14:57 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Fri, 28 Jun 2019 04:34:27 +0000 (12:34 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 28 Jun 2019 04:14:42 +0000 (12:14 +0800)]
1-install: fix wpa_supplicant.conf created unexpectedly
The busybox sed -i is buggy to create an empty file if that file
doesn't exist. That causes unexpected issue.
Chih-Wei Huang [Tue, 19 Mar 2019 08:37:14 +0000 (16:37 +0800)]
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
Chih-Wei Huang [Tue, 19 Mar 2019 08:33:13 +0000 (16:33 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 19 Mar 2019 08:31:42 +0000 (16:31 +0800)]
qemu-android: update options
According to QEMU document, the '-usbdevice' option is deprecated.
Use the new '-device usb-...' option instead.
Chih-Wei Huang [Tue, 19 Mar 2019 08:17:53 +0000 (16:17 +0800)]
android.cfg: simplify code
Not sure why I wrote it in that way.
Chih-Wei Huang [Wed, 13 Mar 2019 10:19:14 +0000 (18:19 +0800)]
init: move the dirs forcibly
Chih-Wei Huang [Tue, 12 Mar 2019 07:15:36 +0000 (15:15 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 12 Mar 2019 07:11:04 +0000 (15:11 +0800)]
1-install: change default answer of system rw mode
Mauro suggested to keep system read-write mode on auto updating.
That's reasonable. So change the default answer for that.
Chih-Wei Huang [Thu, 24 Jan 2019 10:03:03 +0000 (18:03 +0800)]
Update isolinux to 6.03
Use the binary files from AOSP source tree.
Chih-Wei Huang [Tue, 15 Jan 2019 03:39:59 +0000 (11:39 +0800)]
Add experimental Vulkan support
To test it, boot via Advanced options -> Vulkan support (experimental).
Chih-Wei Huang [Fri, 11 Jan 2019 17:05:27 +0000 (01:05 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Conflicts:
install/scripts/1-install
Chih-Wei Huang [Fri, 11 Jan 2019 17:00:49 +0000 (01:00 +0800)]
qemu-android: enable usb tablet device
It sets the pointer device uses absolute coordinates like a touchscreen.
This means QEMU is able to report the mouse position without having to
grab the mouse.
Chih-Wei Huang [Fri, 4 Jan 2019 09:58:34 +0000 (17:58 +0800)]
android.cfg: remove duplicate includes
Seems config_directory is the same as cmdpath, though I don't
understand why.
Chih-Wei Huang [Tue, 1 Jan 2019 15:31:16 +0000 (23:31 +0800)]
android.cfg: support custom boot entry
New entries could also be appended by the new add_boot_entry function
in custom.cfg like
add_boot_entry /android-7.1-r2 "Android-x86 7.1-r2" quiet
Chih-Wei Huang [Fri, 28 Dec 2018 04:38:12 +0000 (12:38 +0800)]
1-install: allow to upgrade an arbitrary folder
Originally the installer only searches and upgrades known folders of
official releases. That causes the upgrade function is not so useful
for unofficial build. Besides, it's a burden to maintain the upgrade
list.
To improve that, search all folders containing android-x86 files.
If multiple folders are found, show a dialog to ask users which one
to upgrade.
Chih-Wei Huang [Fri, 4 Jan 2019 10:06:00 +0000 (18:06 +0800)]
android.cfg: set proper prefix for loopback device
Chih-Wei Huang [Wed, 17 Oct 2018 09:55:39 +0000 (17:55 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 17 Oct 2018 09:52:04 +0000 (17:52 +0800)]
init: load atkbd hid-apple modules anyway
Though auto_detect could load these modules, it may take several
seconds. The user experience is not good.
Load the modules anyway no matter it's detected or not.
Chih-Wei Huang [Fri, 17 Aug 2018 11:35:46 +0000 (19:35 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 17 Aug 2018 11:32:50 +0000 (19:32 +0800)]
isolinux.cfg: fix typos
Chih-Wei Huang [Sun, 12 Aug 2018 12:07:46 +0000 (20:07 +0800)]
1-install: make the wording clearer
Suggested by Antony Stone <Antony.Stone@and-x86.open.source.it>.
Chih-Wei Huang [Thu, 19 Jul 2018 02:53:48 +0000 (10:53 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 19 Jul 2018 02:46:47 +0000 (10:46 +0800)]
Fix NFS mounting
Commit
d9dfce00 determined fs type by blkid, but it didn't consider
the NFS case. The patch handles the case directly.
Fixes:
d9dfce00 ("init: try to mount according to filesystem type")
Chih-Wei Huang [Mon, 25 Jun 2018 14:45:07 +0000 (22:45 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Michael Goffioul [Mon, 25 Jun 2018 14:41:26 +0000 (22:41 +0800)]
Use RELEASE_OS_TITLE in the volume ID of the ISO image
Chih-Wei Huang [Fri, 22 Jun 2018 03:41:18 +0000 (11:41 +0800)]
1-install: add 8.1-rc1 to the upgrade list
Chih-Wei Huang [Fri, 22 Jun 2018 03:01:23 +0000 (11:01 +0800)]
rpm: detect a debian like distribution more effectively
Chih-Wei Huang [Wed, 13 Jun 2018 08:29:54 +0000 (16:29 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Conflicts:
install/grub2/efi/boot/android.cfg
Chih-Wei Huang [Tue, 12 Jun 2018 07:34:49 +0000 (15:34 +0800)]
Add support for more OSes
Chih-Wei Huang [Wed, 23 May 2018 02:27:05 +0000 (10:27 +0800)]
1-install: add grub theme support
This is a modified Oxygen Grub 2 Theme from
https://www.gnome-look.org/p/
1111859/.
Chih-Wei Huang [Mon, 11 Jun 2018 09:29:39 +0000 (17:29 +0800)]
Add a boot entry to skip Setup Wizard
Chih-Wei Huang [Sun, 10 Jun 2018 08:12:31 +0000 (16:12 +0800)]
1-install: skip the whole disk on finding ESP
Chih-Wei Huang [Sun, 10 Jun 2018 08:07:54 +0000 (16:07 +0800)]
qemu-android: find an available port to listen
The script may fail to launch because the port 5555 is bound, e.g.,
another instance is running. The change tries to find an available
port to avoid such an issue.
Chih-Wei Huang [Thu, 17 May 2018 08:39:04 +0000 (16:39 +0800)]
1-install: generate a large file faster
Use seek option of dd to create the large file.
Chih-Wei Huang [Fri, 11 May 2018 11:58:00 +0000 (19:58 +0800)]
1-install: always install system.img in read-write mode
Originally we install the whole system directory to ext4 in read-write
mode. However, oreo-x86 fails to boot since SELinux file contexts are
not defined.
To solve that, just install system.img in read-write mode no matter
what the destination filesystem is.
Chih-Wei Huang [Fri, 11 May 2018 10:47:19 +0000 (18:47 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 9 May 2018 10:25:10 +0000 (18:25 +0800)]
1-install: change default data.img size to 2048MB
512MB is not large enough for oreo-x86.
Chih-Wei Huang [Tue, 8 May 2018 08:09:20 +0000 (16:09 +0800)]
Allow to boot a loopback iso file
Chih-Wei Huang [Tue, 8 May 2018 03:13:44 +0000 (11:13 +0800)]
Use xorriso to generate iso if possible
On some Linux distributions (e.g. Debian 9) genisoimage does not
support -e option we need. Use xorriso to solve that.
Chih-Wei Huang [Fri, 4 May 2018 05:07:12 +0000 (13:07 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 2 May 2018 09:47:30 +0000 (17:47 +0800)]
1-install: add 7.1-r2 to the upgrade list
Chih-Wei Huang [Wed, 2 May 2018 03:43:18 +0000 (11:43 +0800)]
0-auto-detect: avoid loading hyperv modules
Chih-Wei Huang [Thu, 19 Apr 2018 06:51:58 +0000 (14:51 +0800)]
qemu-android: add QXL paravirtual graphic card
It is VGA compatible (including VESA 2.0 VBE support). Works best with
qxl guest drivers installed though. Recommended choice when using the
spice protocol.
Tested-by: John Morris <jmorris42@gmail.com>
Chih-Wei Huang [Sun, 15 Apr 2018 08:35:31 +0000 (16:35 +0800)]
Generate efi.img on the fly
Chih-Wei Huang [Sun, 15 Apr 2018 08:18:56 +0000 (16:18 +0800)]
Update 64-bit grub-efi binaries
Signed binaries from Ubuntu 18.04:
* BOOTx64.EFI: shimx64.efi.signed of shim-signed (1.33.1+13-0ubuntu2)
* grubx64.efi: gcdx64.efi.signed of grub-efi-amd64-signed (1.93+2.02-2ubuntu8)
Chih-Wei Huang [Fri, 13 Apr 2018 15:19:34 +0000 (23:19 +0800)]
1-install: fix incorrect quote
Chih-Wei Huang [Fri, 13 Apr 2018 07:01:55 +0000 (15:01 +0800)]
1-install: create device node of ESP if not exists
Similar to commit
71810cea but for ESP.
Chih-Wei Huang [Fri, 13 Apr 2018 06:44:17 +0000 (14:44 +0800)]
1-install: select proper partition tool if possible
Try to determine the appropriate partition tool based on the partition
table type. Only ask users if no valid partition table is found.
Chih-Wei Huang [Thu, 22 Feb 2018 09:42:45 +0000 (17:42 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 14 Feb 2018 07:09:46 +0000 (15:09 +0800)]
Allow to show the specified OS title
Chih-Wei Huang [Fri, 9 Feb 2018 11:09:00 +0000 (19:09 +0800)]
1-install: allow to specify partition to update
You can specify the partition to be updated like AUTO_UPDATE=sdb2.
Chih-Wei Huang [Thu, 8 Feb 2018 10:22:02 +0000 (18:22 +0800)]
Try to boot more OSes from other ESP
Search more boot loaders including the default and fallback from
other possible EFI system partition.
Chih-Wei Huang [Thu, 8 Feb 2018 07:30:49 +0000 (15:30 +0800)]
1-install: convert GPT to MBR for legacy GRUB
Installing legacy GRUB to GPT won't work. Try to convert GPT to MBR
if users agree.
Chih-Wei Huang [Thu, 8 Feb 2018 04:59:07 +0000 (12:59 +0800)]
Let users specify the target disk to auto install
It's a little tricky to select ESP if auto install to non-first disk.
Instead of using the ESP from the first disk, we select the ESP on the
target disk. This is useful if auto install to a USB disk.
Chih-Wei Huang [Wed, 7 Feb 2018 10:33:50 +0000 (18:33 +0800)]
1-install: fix possible wrong selection of auto update
The iso media must be excluded from the auto selection.
Chih-Wei Huang [Wed, 7 Feb 2018 07:27:32 +0000 (15:27 +0800)]
1-install: install the default bootloader if not exists
If there is no default EFI bootloader, install ours as the default one.
Chih-Wei Huang [Wed, 7 Feb 2018 05:27:36 +0000 (13:27 +0800)]
1-install: add 7.1-r1 to the upgrade list
Chih-Wei Huang [Tue, 6 Feb 2018 10:32:47 +0000 (18:32 +0800)]
Set rpm epoch
Set epoch to the major version for a non-rc (stable) release.
Otherwise, set epoch to the major version minus one.
Chih-Wei Huang [Tue, 6 Feb 2018 03:16:31 +0000 (11:16 +0800)]
1-install: recommend to install EFI GRUB2
You should install it unless you know what you're doing.
Chih-Wei Huang [Tue, 6 Feb 2018 02:42:20 +0000 (10:42 +0800)]
1-install: remove redundant redirection
Chih-Wei Huang [Fri, 2 Feb 2018 08:09:40 +0000 (16:09 +0800)]
Add advanced options to boot menu
Provide more boot options in the advanced submenu.
Chih-Wei Huang [Wed, 31 Jan 2018 09:34:06 +0000 (17:34 +0800)]
1-install: add startup.nsh if it doesn't exist
On some buggy UEFI firmware (e.g., VirtualBox), the boot entry created
by efibootmgr may disappear after poweroff. As a result it can't boot
to Android-x86 anymore.
Add startup.nsh to run our boot loader as a fallback.