boot – ubiquity installer fails to install grub to correct path

am I missing something or why can’t grub always be installed where it is directed to with manual partitioning + preseed?

I use a preseed file for xubuntu 20.04.2 desktop that is devoid of partitioning directives. when “automatic-ubiquity” is booted, after manually partitioning sda selecting /dev/sda1 is ignored and grub is installed into /dev/sda.

added d-i grub-installer/only_debian boolean false and/or d-i grub-installer/with_other_os boolean false to preseed. after manually partitioning sda selecting /dev/sda1 is ignored and grub is installed into /dev/sda.

I hacked a way to dynamically set d-i grub-installer/bootdev string default but that requires booting into the live environment, partitioning the disk and setting the active partition first, then starting “ubiquity -‑automatic” or rebooting with “automatic-ubiquity”.

d-i grub-installer/only_debian boolean false
d-i grub-installer/with_other_os boolean false
d-i grub-installer/bootdev string default
d-i partman/early_command string                                               
 BOOTFLAG=$(lsblk -rpo PARTFLAGS,PKNAME,PATH | grep "0x80" | cut -f 3 -d ' '); 
 if ( $BOOTFLAG ); then debconf-set grub-installer/bootdev $BOOTFLAG; fi;

testing this works with a vm with a single disk, but may not work as desired on hardware with multiple disks or installing from usb.

d-i grub-installer/skip boolean true seems ignored always. again I hacked a way to make that work, I set d-i grub-installer/bootdev string leaving it empty. manually installing grub in ubiquity/success_command does not work though. inspecting the first few sectors of /dev/sda1, all are 00. the other command completes sucessfully.

d-i grub-installer/only_debian boolean false
d-i grub-installer/with_other_os boolean false
d-i grub-installer/bootdev string 
ubiquity ubiquity/success_command string                                       
 in-target grub-install -‑force /dev/sda1;                                     
 echo "tmpfs /tmp tmpfs nosuid,nodev 0 0" >> /target/etc/fstab;

windows – Signed Installer Downloads Unsigned Executable

Context:

I’m designing a deployment process for a Windows 10 desktop application that will run on client machines. There are two programs: an app and an installer which downloads and installs the app. It’s important that clients never see any scary security warnings. The installer is signed with an Extended Validation (EV) Certificate, so it doesn’t trigger Windows SmartScreen. The app is not signed by any certificate but, in testing, Windows 10 doesn’t seem to complain when the user runs the app.

Questions:

  • Does Windows SmartScreen consider the app safe because it was downloaded by a EV signed installer?
  • Can I depend on this behavior and forego code signing the app?
Not My Question:

I’m not asking if I should sign the app for other reasons, I know I should. Only asking about Windows SmartScreen security warnings.

boot – The installer error: faulty hard risk … old and need replacement

I attempted several times to install Ubuntu 20.04.2.0 from bootable USB stick. I am installing on a 10 years old but powerful Dell PC. Based on issues and researches, I have done the following changes:

  • deleted all partitions
  • changed bios settings from legacy to UEFI
  • created two partitions, one for installation and formatted as ext4, and one for swap, using GParted in Ubuntu live

During installing, I chose the formatted ext4 partition and swap for installation. It was accepted, but after a few minutes, I got the error below when installer was installing.

The installer encountered an error copying files to the hard disk.

[error 30] read only file system ‘/target/snap’

It’s often due to faulty hard disk. It may help to check whether the hard disk is old and it need replacement or move the system to a cooler environment.

Here in South hemisphere, it’s winter so it shouldn’t be the heat issue. I’m wondering if Ubuntu installer is age biased or there is an issue that I can resolve without buying a new hard disk. Thanks.

macos – Create chrome custom shortcut app installer

macos – Create chrome custom shortcut app installer – Ask Different

system installation – Ubuntu 18.04 – debian installer (preseed) not respecting max size on partitions

I am using preseed to do an unattended install of Ubuntu 18.04 using the following recipe, but it ends up with the lv_swap partition filling up the disk and it ends up with 60+GB.

How can I make the partitions respect the size described on the recipe:
1 GB /boot
20GB / (LVM)
20GB /var (LVM)
4 GB swap (LVM)
rest would be free space on LVM to be used later

d-i partman-auto/expert_recipe string
boot-root ::
1 1 1 free
$bios_boot{ }
method{ biosgrub }
.
1024 1024 1024 ext4
$primary{ }
$bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /boot }
.
20480 20480 20480 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / }
lv_name{ lv_root }
.
20480 20480 20480 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var }
lv_name{ lv_var }
.
4096 4096 4096 linux-swap
$lvmok{ }
method{ swap } format{ }
lv_name{ lv_swap }
.

Thank you!

server – Ubuntu 20.04 installer downloads ISO more than once

I have been working through the example posted by Andrew Lowther at Automated 20.04 Server Installation using PXE and live server image . For example using a linux cmdline similar to:

linux /vmlinuz ip=dhcp url=http://${pxe_default_server}/tftp/ubuntu-20.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://${pxe_default_server}/tftp/

….and got things working (Thanks Andrew!)

Another question I have after working with this a bit. As one can see, the installer is going to downlaoad the ISO from http://${pxe_default_server}/tftp/ubuntu-20.04-live-server-amd64.iso in that example. In my httpd logs, I can see that the ISO gets downloaded 3 times over the network when doing one automated install. Is there a way I can make it not do that?

192.168.1.225 - - (06/Apr/2021:22:09:47 +0000) "GET /ubuntu-20.04.1-live-server-amd64.iso HTTP/1.1" 200 958398464 "-" "Wget"
192.168.1.225 - - (06/Apr/2021:22:13:24 +0000) "GET /ubuntu-20.04.1-live-server-amd64.iso HTTP/1.1" 200 958398464 "-" "Cloud-Init/20.2-45-g5f7825e2-0ubuntu1~20.04.1"
192.68.1.225 - - (06/Apr/2021:22:16:50 +0000) "GET /ubuntu-20.04.1-live-server-amd64.iso HTTP/1.1" 200 958398464 "-" "Cloud-Init/20.2-45-g5f7825e2-0ubuntu1~20.04.1"

Thanks!

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheapest USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Proxyti.com Buy Quality Private Proxies